]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - shared/models/server/custom-config.model.ts
Support transcoding options/encoders by plugins
[github/Chocobozzz/PeerTube.git] / shared / models / server / custom-config.model.ts
index fcc29e5d70ba9ce6a536a3a3e1e62f823b2d0956..d23b8abef052640fd26275d6d62be0c6716051f0 100644 (file)
@@ -33,12 +33,6 @@ export interface CustomConfig {
     defaultNSFWPolicy: NSFWPolicyType
 
     defaultClientRoute: string
-    defaultTrendingRoute: string
-    pages: {
-      hot: {
-        enabled: boolean
-      }
-    }
 
     customizations: {
       javascript?: string
@@ -93,6 +87,9 @@ export interface CustomConfig {
     allowAudioFiles: boolean
 
     threads: number
+
+    profile: string
+
     resolutions: ConfigResolutions & { '0p': boolean }
 
     webtorrent: {
@@ -116,6 +113,7 @@ export interface CustomConfig {
     transcoding: {
       enabled: boolean
       threads: number
+      profile: string
       resolutions: ConfigResolutions
     }
   }
@@ -131,6 +129,15 @@ export interface CustomConfig {
     }
   }
 
+  trending: {
+    videos: {
+      algorithms: {
+        enabled: string[]
+        default: string
+      }
+    }
+  }
+
   autoBlacklist: {
     videos: {
       ofUsers: {