]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - shared/models/server/custom-config.model.ts
Use a profile manager for transcoding
[github/Chocobozzz/PeerTube.git] / shared / models / server / custom-config.model.ts
index e609d1a337c6508f02424ab4ff9194cb76fdb0ff..a57237414dd1d2688b7d30cbb881ef06c0c49212 100644 (file)
@@ -7,6 +7,7 @@ export type ConfigResolutions = {
   '480p': boolean
   '720p': boolean
   '1080p': boolean
+  '1440p': boolean
   '2160p': boolean
 }
 
@@ -29,8 +30,10 @@ export interface CustomConfig {
     categories: number[]
 
     isNSFW: boolean
-    defaultClientRoute: string
     defaultNSFWPolicy: NSFWPolicyType
+
+    defaultClientRoute: string
+
     customizations: {
       javascript?: string
       css?: string
@@ -98,6 +101,12 @@ export interface CustomConfig {
   live: {
     enabled: boolean
 
+    allowReplay: boolean
+
+    maxDuration: number
+    maxInstanceLives: number
+    maxUserLives: number
+
     transcoding: {
       enabled: boolean
       threads: number
@@ -116,6 +125,15 @@ export interface CustomConfig {
     }
   }
 
+  trending: {
+    videos: {
+      algorithms: {
+        enabled: string[]
+        default: string
+      }
+    }
+  }
+
   autoBlacklist: {
     videos: {
       ofUsers: {