]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - shared/models/server/custom-config.model.ts
NoImplicitAny flag true (#1157)
[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 requiresEmailVerification: boolean
38 }
39
40 admin: {
41 email: string
42 }
43
44 user: {
45 videoQuota: number
46 videoQuotaDaily: number
47 }
48
49 transcoding: {
50 enabled: boolean
51 threads: number
52 resolutions: {
53 '240p': boolean
54 '360p': boolean
55 '480p': boolean
56 '720p': boolean
57 '1080p': boolean
58 [key: string]: boolean
59 }
60 }
61
62 import: {
63 videos: {
64 http: {
65 enabled: boolean
66 },
67 torrent: {
68 enabled: boolean
69 }
70 }
71 }
72 }