]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - shared/models/server/server-config.model.ts
Add P2P enabled/disabled in player card
[github/Chocobozzz/PeerTube.git] / shared / models / server / server-config.model.ts
index 5bbb612525050f7b3b2625604f1965f60166bd10..71540e603416b902a42e8a2e8b53b4e8c9b5b223 100644 (file)
@@ -1,3 +1,4 @@
+import { VideoPrivacy } from '../videos/video-privacy.enum'
 import { ClientScript } from '../plugins/plugin-package-json.model'
 import { NSFWPolicyType } from '../videos/nsfw-policy.type'
 import { BroadcastMessageLevel } from './broadcast-message-level.type'
@@ -39,6 +40,25 @@ export interface ServerConfig {
         preferAuthorDisplayName: boolean
       }
     }
+
+    menu: {
+      login: {
+        redirectOnSingleExternalAuth: boolean
+      }
+    }
+  }
+
+  defaults: {
+    publish: {
+      downloadEnabled: boolean
+      commentsEnabled: boolean
+      privacy: VideoPrivacy
+      licence: number
+    }
+
+    p2p: {
+      enabled: boolean
+    }
   }
 
   webadmin: {
@@ -47,7 +67,7 @@ export interface ServerConfig {
         allowed: boolean
       }
     }
-  },
+  }
 
   instance: {
     name: string
@@ -203,6 +223,10 @@ export interface ServerConfig {
     videoQuotaDaily: number
   }
 
+  videoChannels: {
+    maxPerUser: number
+  }
+
   trending: {
     videos: {
       intervalDays: number