Support occitan
[oweals/peertube.git] / shared / models / server / server-config.model.ts
1 import { NSFWPolicyType } from '../videos/nsfw-policy.type'
2
3 export interface ServerConfig {
4   serverVersion: string
5
6   instance: {
7     name: string
8     shortDescription: string
9     defaultClientRoute: string
10     defaultNSFWPolicy: NSFWPolicyType
11     customizations: {
12       javascript: string
13       css: string
14     }
15   }
16
17   signup: {
18     allowed: boolean,
19     allowedForCurrentIP: boolean
20   }
21
22   transcoding: {
23     enabledResolutions: number[]
24   }
25
26   import: {
27     videos: {
28       http: {
29         enabled: boolean
30       }
31       torrent: {
32         enabled: boolean
33       }
34     }
35   }
36
37   avatar: {
38     file: {
39       size: {
40         max: number
41       },
42       extensions: string[]
43     }
44   }
45
46   video: {
47     image: {
48       size: {
49         max: number
50       }
51       extensions: string[]
52     },
53     file: {
54       extensions: string[]
55     }
56   }
57
58   videoCaption: {
59     file: {
60       size: {
61         max: number
62       },
63       extensions: string[]
64     }
65   }
66
67   user: {
68     videoQuota: number
69   }
70 }