]>
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 | ||
7cd4d2ba C |
18 | theme: { |
19 | default: string | |
20 | } | |
21 | ||
8be1afa1 C |
22 | services: { |
23 | twitter: { | |
24 | username: string | |
25 | whitelisted: boolean | |
26 | } | |
27 | } | |
28 | ||
fd206f0b C |
29 | cache: { |
30 | previews: { | |
31 | size: number | |
32 | } | |
40e87e9e C |
33 | |
34 | captions: { | |
35 | size: number | |
36 | } | |
fd206f0b C |
37 | } |
38 | ||
39 | signup: { | |
40 | enabled: boolean | |
41 | limit: number | |
d9eaee39 | 42 | requiresEmailVerification: boolean |
fd206f0b C |
43 | } |
44 | ||
45 | admin: { | |
46 | email: string | |
47 | } | |
48 | ||
a4101923 C |
49 | contactForm: { |
50 | enabled: boolean | |
51 | } | |
52 | ||
fd206f0b C |
53 | user: { |
54 | videoQuota: number | |
bee0abff | 55 | videoQuotaDaily: number |
fd206f0b C |
56 | } |
57 | ||
58 | transcoding: { | |
59 | enabled: boolean | |
14e2014a | 60 | allowAdditionalExtensions: boolean |
536598cf | 61 | allowAudioFiles: boolean |
fd206f0b C |
62 | threads: number |
63 | resolutions: { | |
64 | '240p': boolean | |
65 | '360p': boolean | |
66 | '480p': boolean | |
67 | '720p': boolean | |
68 | '1080p': boolean | |
00aa1f0d | 69 | '2160p': boolean |
fd206f0b | 70 | } |
09209296 C |
71 | hls: { |
72 | enabled: boolean | |
73 | } | |
fd206f0b | 74 | } |
5d08a6a7 C |
75 | |
76 | import: { | |
77 | videos: { | |
78 | http: { | |
79 | enabled: boolean | |
a84b8fa5 C |
80 | }, |
81 | torrent: { | |
82 | enabled: boolean | |
5d08a6a7 C |
83 | } |
84 | } | |
85 | } | |
7ccddd7b JM |
86 | |
87 | autoBlacklist: { | |
88 | videos: { | |
89 | ofUsers: { | |
90 | enabled: boolean | |
91 | } | |
92 | } | |
93 | } | |
94 | ||
5b9c965d C |
95 | followers: { |
96 | instance: { | |
14893eb7 C |
97 | enabled: boolean, |
98 | manualApproval: boolean | |
5b9c965d C |
99 | } |
100 | } | |
101 | ||
fd206f0b | 102 | } |