]>
Commit | Line | Data |
---|---|---|
0883b324 | 1 | import { NSFWPolicyType } from '../videos/nsfw-policy.type' |
72c33e71 | 2 | import { BroadcastMessageLevel } from './broadcast-message-level.type' |
0883b324 | 3 | |
c6c0fa6c C |
4 | export type ConfigResolutions = { |
5 | '240p': boolean | |
6 | '360p': boolean | |
7 | '480p': boolean | |
8 | '720p': boolean | |
9 | '1080p': boolean | |
b7085c71 | 10 | '1440p': boolean |
c6c0fa6c C |
11 | '2160p': boolean |
12 | } | |
13 | ||
fd206f0b | 14 | export interface CustomConfig { |
66b16caf C |
15 | instance: { |
16 | name: string | |
2e3a0215 | 17 | shortDescription: string |
66b16caf C |
18 | description: string |
19 | terms: string | |
ccc00cb2 C |
20 | codeOfConduct: string |
21 | ||
8ae03c37 | 22 | creationReason: string |
ccc00cb2 C |
23 | moderationInformation: string |
24 | administrator: string | |
25 | maintenanceLifetime: string | |
26 | businessModel: string | |
be04c6fd | 27 | hardwareInformation: string |
ccc00cb2 C |
28 | |
29 | languages: string[] | |
30 | categories: number[] | |
31 | ||
f8802489 | 32 | isNSFW: boolean |
0883b324 | 33 | defaultNSFWPolicy: NSFWPolicyType |
3da68f0a RK |
34 | |
35 | defaultClientRoute: string | |
3da68f0a | 36 | |
00b5556c C |
37 | customizations: { |
38 | javascript?: string | |
39 | css?: string | |
40 | } | |
66b16caf C |
41 | } |
42 | ||
7cd4d2ba C |
43 | theme: { |
44 | default: string | |
45 | } | |
46 | ||
8be1afa1 C |
47 | services: { |
48 | twitter: { | |
49 | username: string | |
50 | whitelisted: boolean | |
51 | } | |
52 | } | |
53 | ||
fd206f0b C |
54 | cache: { |
55 | previews: { | |
56 | size: number | |
57 | } | |
40e87e9e C |
58 | |
59 | captions: { | |
60 | size: number | |
61 | } | |
fd206f0b C |
62 | } |
63 | ||
64 | signup: { | |
65 | enabled: boolean | |
66 | limit: number | |
d9eaee39 | 67 | requiresEmailVerification: boolean |
fd206f0b C |
68 | } |
69 | ||
70 | admin: { | |
71 | email: string | |
72 | } | |
73 | ||
a4101923 C |
74 | contactForm: { |
75 | enabled: boolean | |
76 | } | |
77 | ||
fd206f0b C |
78 | user: { |
79 | videoQuota: number | |
bee0abff | 80 | videoQuotaDaily: number |
fd206f0b C |
81 | } |
82 | ||
83 | transcoding: { | |
84 | enabled: boolean | |
d7a25329 | 85 | |
14e2014a | 86 | allowAdditionalExtensions: boolean |
536598cf | 87 | allowAudioFiles: boolean |
d7a25329 | 88 | |
fd206f0b | 89 | threads: number |
9129b769 | 90 | concurrency: number |
1896bca0 C |
91 | |
92 | profile: string | |
93 | ||
c6c0fa6c | 94 | resolutions: ConfigResolutions & { '0p': boolean } |
d7a25329 C |
95 | |
96 | webtorrent: { | |
97 | enabled: boolean | |
98 | } | |
99 | ||
09209296 C |
100 | hls: { |
101 | enabled: boolean | |
102 | } | |
fd206f0b | 103 | } |
5d08a6a7 | 104 | |
c6c0fa6c C |
105 | live: { |
106 | enabled: boolean | |
107 | ||
fb719404 | 108 | allowReplay: boolean |
a056ca48 | 109 | |
fb719404 | 110 | maxDuration: number |
a056ca48 C |
111 | maxInstanceLives: number |
112 | maxUserLives: number | |
fb719404 | 113 | |
c6c0fa6c C |
114 | transcoding: { |
115 | enabled: boolean | |
116 | threads: number | |
1896bca0 | 117 | profile: string |
c6c0fa6c C |
118 | resolutions: ConfigResolutions |
119 | } | |
120 | } | |
121 | ||
5d08a6a7 C |
122 | import: { |
123 | videos: { | |
9129b769 C |
124 | concurrency: number |
125 | ||
5d08a6a7 C |
126 | http: { |
127 | enabled: boolean | |
a1587156 | 128 | } |
a84b8fa5 C |
129 | torrent: { |
130 | enabled: boolean | |
5d08a6a7 C |
131 | } |
132 | } | |
133 | } | |
7ccddd7b | 134 | |
ba5d4a84 RK |
135 | trending: { |
136 | videos: { | |
137 | algorithms: { | |
138 | enabled: string[] | |
139 | default: string | |
140 | } | |
141 | } | |
142 | } | |
143 | ||
7ccddd7b JM |
144 | autoBlacklist: { |
145 | videos: { | |
146 | ofUsers: { | |
147 | enabled: boolean | |
148 | } | |
149 | } | |
150 | } | |
151 | ||
5b9c965d C |
152 | followers: { |
153 | instance: { | |
a1587156 | 154 | enabled: boolean |
14893eb7 | 155 | manualApproval: boolean |
5b9c965d C |
156 | } |
157 | } | |
158 | ||
8424c402 C |
159 | followings: { |
160 | instance: { | |
161 | autoFollowBack: { | |
162 | enabled: boolean | |
163 | } | |
164 | ||
165 | autoFollowIndex: { | |
166 | enabled: boolean | |
167 | indexUrl: string | |
168 | } | |
169 | } | |
170 | } | |
72c33e71 C |
171 | |
172 | broadcastMessage: { | |
173 | enabled: boolean | |
174 | message: string | |
175 | level: BroadcastMessageLevel | |
176 | dismissable: boolean | |
177 | } | |
5fb2e288 C |
178 | |
179 | search: { | |
180 | remoteUri: { | |
181 | users: boolean | |
182 | anonymous: boolean | |
183 | } | |
184 | ||
185 | searchIndex: { | |
186 | enabled: boolean | |
187 | url: string | |
188 | disableLocalSearch: boolean | |
189 | isDefaultSearch: boolean | |
190 | } | |
191 | } | |
fd206f0b | 192 | } |