]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - shared/models/server/custom-config.model.ts
WIP plugins: add ability to register plugins
[github/Chocobozzz/PeerTube.git] / shared / models / server / custom-config.model.ts
index 9c4718e43ed78efc9e8896ea86d60e0c4b9ddb21..670553d16c6f8c819c52f961ac727a09b7e63cd7 100644 (file)
@@ -6,6 +6,7 @@ export interface CustomConfig {
     shortDescription: string
     description: string
     terms: string
+    isNSFW: boolean
     defaultClientRoute: string
     defaultNSFWPolicy: NSFWPolicyType
     customizations: {
@@ -34,18 +35,26 @@ export interface CustomConfig {
   signup: {
     enabled: boolean
     limit: number
+    requiresEmailVerification: boolean
   }
 
   admin: {
     email: string
   }
 
+  contactForm: {
+    enabled: boolean
+  }
+
   user: {
     videoQuota: number
+    videoQuotaDaily: number
   }
 
   transcoding: {
     enabled: boolean
+    allowAdditionalExtensions: boolean
+    allowAudioFiles: boolean
     threads: number
     resolutions: {
       '240p': boolean
@@ -53,6 +62,37 @@ export interface CustomConfig {
       '480p': boolean
       '720p': boolean
       '1080p': boolean
+      '2160p': boolean
+    }
+    hls: {
+      enabled: boolean
+    }
+  }
+
+  import: {
+    videos: {
+      http: {
+        enabled: boolean
+      },
+      torrent: {
+        enabled: boolean
+      }
     }
   }
+
+  autoBlacklist: {
+    videos: {
+      ofUsers: {
+        enabled: boolean
+      }
+    }
+  }
+
+  followers: {
+    instance: {
+      enabled: boolean,
+      manualApproval: boolean
+    }
+  }
+
 }