]>
Commit | Line | Data |
---|---|---|
0883b324 C |
1 | import { NSFWPolicyType } from '../videos/nsfw-policy.type' |
2 | ||
fd206f0b | 3 | export interface CustomConfig { |
66b16caf C |
4 | instance: { |
5 | name: string | |
2e3a0215 | 6 | shortDescription: string |
66b16caf C |
7 | description: string |
8 | terms: string | |
f8802489 | 9 | isNSFW: boolean |
901637bb | 10 | defaultClientRoute: string |
0883b324 | 11 | defaultNSFWPolicy: NSFWPolicyType |
00b5556c C |
12 | customizations: { |
13 | javascript?: string | |
14 | css?: string | |
15 | } | |
66b16caf C |
16 | } |
17 | ||
8be1afa1 C |
18 | services: { |
19 | twitter: { | |
20 | username: string | |
21 | whitelisted: boolean | |
22 | } | |
23 | } | |
24 | ||
fd206f0b C |
25 | cache: { |
26 | previews: { | |
27 | size: number | |
28 | } | |
40e87e9e C |
29 | |
30 | captions: { | |
31 | size: number | |
32 | } | |
fd206f0b C |
33 | } |
34 | ||
35 | signup: { | |
36 | enabled: boolean | |
37 | limit: number | |
d9eaee39 | 38 | requiresEmailVerification: boolean |
fd206f0b C |
39 | } |
40 | ||
41 | admin: { | |
42 | email: string | |
43 | } | |
44 | ||
a4101923 C |
45 | contactForm: { |
46 | enabled: boolean | |
47 | } | |
48 | ||
fd206f0b C |
49 | user: { |
50 | videoQuota: number | |
bee0abff | 51 | videoQuotaDaily: number |
fd206f0b C |
52 | } |
53 | ||
54 | transcoding: { | |
55 | enabled: boolean | |
14e2014a | 56 | allowAdditionalExtensions: boolean |
536598cf | 57 | allowAudioFiles: boolean |
fd206f0b C |
58 | threads: number |
59 | resolutions: { | |
60 | '240p': boolean | |
61 | '360p': boolean | |
62 | '480p': boolean | |
63 | '720p': boolean | |
64 | '1080p': boolean | |
00aa1f0d | 65 | '2160p': boolean |
fd206f0b | 66 | } |
09209296 C |
67 | hls: { |
68 | enabled: boolean | |
69 | } | |
fd206f0b | 70 | } |
5d08a6a7 C |
71 | |
72 | import: { | |
73 | videos: { | |
74 | http: { | |
75 | enabled: boolean | |
a84b8fa5 C |
76 | }, |
77 | torrent: { | |
78 | enabled: boolean | |
5d08a6a7 C |
79 | } |
80 | } | |
81 | } | |
7ccddd7b JM |
82 | |
83 | autoBlacklist: { | |
84 | videos: { | |
85 | ofUsers: { | |
86 | enabled: boolean | |
87 | } | |
88 | } | |
89 | } | |
90 | ||
5b9c965d C |
91 | followers: { |
92 | instance: { | |
14893eb7 C |
93 | enabled: boolean, |
94 | manualApproval: boolean | |
5b9c965d C |
95 | } |
96 | } | |
97 | ||
fd206f0b | 98 | } |