]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - shared/models/server/custom-config.model.ts
2f5cebf7f60a2607d7b00cf77bdf259b4961a309
[github/Chocobozzz/PeerTube.git] / shared / models / server / custom-config.model.ts
1 import { NSFWPolicyType } from '../videos/nsfw-policy.type'
2
3 export interface CustomConfig {
4 instance: {
5 name: string
6 shortDescription: string
7 description: string
8 terms: string
9 defaultClientRoute: string
10 defaultNSFWPolicy: NSFWPolicyType
11 customizations: {
12 javascript?: string
13 css?: string
14 }
15 }
16
17 services: {
18 twitter: {
19 username: string
20 whitelisted: boolean
21 }
22 }
23
24 cache: {
25 previews: {
26 size: number
27 }
28
29 captions: {
30 size: number
31 }
32 }
33
34 signup: {
35 enabled: boolean
36 limit: number
37 }
38
39 admin: {
40 email: string
41 }
42
43 user: {
44 videoQuota: number
45 videoQuotaDaily: number
46 }
47
48 transcoding: {
49 enabled: boolean
50 threads: number
51 resolutions: {
52 '240p': boolean
53 '360p': boolean
54 '480p': boolean
55 '720p': boolean
56 '1080p': boolean
57 }
58 }
59
60 import: {
61 videos: {
62 http: {
63 enabled: boolean
64 },
65 torrent: {
66 enabled: boolean
67 }
68 }
69 }
70 }