]>
Commit | Line | Data |
---|---|---|
0883b324 | 1 | import { NSFWPolicyType } from '../videos/nsfw-policy.type' |
72c33e71 | 2 | import { BroadcastMessageLevel } from './broadcast-message-level.type' |
0883b324 | 3 | |
c6c0fa6c | 4 | export type ConfigResolutions = { |
8dd754c7 | 5 | '144p': boolean |
c6c0fa6c C |
6 | '240p': boolean |
7 | '360p': boolean | |
8 | '480p': boolean | |
9 | '720p': boolean | |
10 | '1080p': boolean | |
b7085c71 | 11 | '1440p': boolean |
c6c0fa6c C |
12 | '2160p': boolean |
13 | } | |
14 | ||
fd206f0b | 15 | export interface CustomConfig { |
66b16caf C |
16 | instance: { |
17 | name: string | |
2e3a0215 | 18 | shortDescription: string |
66b16caf C |
19 | description: string |
20 | terms: string | |
ccc00cb2 C |
21 | codeOfConduct: string |
22 | ||
8ae03c37 | 23 | creationReason: string |
ccc00cb2 C |
24 | moderationInformation: string |
25 | administrator: string | |
26 | maintenanceLifetime: string | |
27 | businessModel: string | |
be04c6fd | 28 | hardwareInformation: string |
ccc00cb2 C |
29 | |
30 | languages: string[] | |
31 | categories: number[] | |
32 | ||
f8802489 | 33 | isNSFW: boolean |
0883b324 | 34 | defaultNSFWPolicy: NSFWPolicyType |
3da68f0a RK |
35 | |
36 | defaultClientRoute: string | |
3da68f0a | 37 | |
00b5556c C |
38 | customizations: { |
39 | javascript?: string | |
40 | css?: string | |
41 | } | |
66b16caf C |
42 | } |
43 | ||
7cd4d2ba C |
44 | theme: { |
45 | default: string | |
46 | } | |
47 | ||
8be1afa1 C |
48 | services: { |
49 | twitter: { | |
50 | username: string | |
51 | whitelisted: boolean | |
52 | } | |
0bc53e20 C |
53 | } |
54 | ||
55 | client: { | |
56 | videos: { | |
57 | miniature: { | |
58 | preferAuthorDisplayName: boolean | |
59 | } | |
60 | } | |
61 | ||
62 | menu: { | |
63 | login: { | |
64 | redirectOnSingleExternalAuth: boolean | |
65 | } | |
66 | } | |
8be1afa1 C |
67 | } |
68 | ||
fd206f0b C |
69 | cache: { |
70 | previews: { | |
71 | size: number | |
72 | } | |
40e87e9e C |
73 | |
74 | captions: { | |
75 | size: number | |
76 | } | |
b3d5cb92 C |
77 | |
78 | torrents: { | |
79 | size: number | |
80 | } | |
fd206f0b C |
81 | } |
82 | ||
83 | signup: { | |
84 | enabled: boolean | |
85 | limit: number | |
e364e31e | 86 | requiresApproval: boolean |
d9eaee39 | 87 | requiresEmailVerification: boolean |
1f256e7d | 88 | minimumAge: number |
fd206f0b C |
89 | } |
90 | ||
91 | admin: { | |
92 | email: string | |
93 | } | |
94 | ||
a4101923 C |
95 | contactForm: { |
96 | enabled: boolean | |
97 | } | |
98 | ||
fd206f0b | 99 | user: { |
b302c80d W |
100 | history: { |
101 | videos: { | |
102 | enabled: boolean | |
103 | } | |
104 | } | |
fd206f0b | 105 | videoQuota: number |
bee0abff | 106 | videoQuotaDaily: number |
fd206f0b C |
107 | } |
108 | ||
754b6f5f FC |
109 | videoChannels: { |
110 | maxPerUser: number | |
111 | } | |
112 | ||
fd206f0b C |
113 | transcoding: { |
114 | enabled: boolean | |
d7a25329 | 115 | |
14e2014a | 116 | allowAdditionalExtensions: boolean |
536598cf | 117 | allowAudioFiles: boolean |
d7a25329 | 118 | |
0c9668f7 C |
119 | remoteRunners: { |
120 | enabled: boolean | |
121 | } | |
122 | ||
fd206f0b | 123 | threads: number |
9129b769 | 124 | concurrency: number |
1896bca0 C |
125 | |
126 | profile: string | |
127 | ||
c6c0fa6c | 128 | resolutions: ConfigResolutions & { '0p': boolean } |
d7a25329 | 129 | |
84cae54e C |
130 | alwaysTranscodeOriginalResolution: boolean |
131 | ||
d7a25329 C |
132 | webtorrent: { |
133 | enabled: boolean | |
134 | } | |
135 | ||
09209296 C |
136 | hls: { |
137 | enabled: boolean | |
138 | } | |
fd206f0b | 139 | } |
5d08a6a7 | 140 | |
c6c0fa6c C |
141 | live: { |
142 | enabled: boolean | |
143 | ||
fb719404 | 144 | allowReplay: boolean |
a056ca48 | 145 | |
f443a746 C |
146 | latencySetting: { |
147 | enabled: boolean | |
148 | } | |
149 | ||
fb719404 | 150 | maxDuration: number |
a056ca48 C |
151 | maxInstanceLives: number |
152 | maxUserLives: number | |
fb719404 | 153 | |
c6c0fa6c C |
154 | transcoding: { |
155 | enabled: boolean | |
0c9668f7 C |
156 | remoteRunners: { |
157 | enabled: boolean | |
158 | } | |
c6c0fa6c | 159 | threads: number |
1896bca0 | 160 | profile: string |
c6c0fa6c | 161 | resolutions: ConfigResolutions |
84cae54e | 162 | alwaysTranscodeOriginalResolution: boolean |
c6c0fa6c C |
163 | } |
164 | } | |
165 | ||
92e66e04 | 166 | videoStudio: { |
c729caf6 | 167 | enabled: boolean |
5e47f6ab C |
168 | |
169 | remoteRunners: { | |
170 | enabled: boolean | |
171 | } | |
c729caf6 C |
172 | } |
173 | ||
5d08a6a7 C |
174 | import: { |
175 | videos: { | |
9129b769 C |
176 | concurrency: number |
177 | ||
5d08a6a7 C |
178 | http: { |
179 | enabled: boolean | |
a1587156 | 180 | } |
a84b8fa5 C |
181 | torrent: { |
182 | enabled: boolean | |
5d08a6a7 C |
183 | } |
184 | } | |
2a491182 F |
185 | videoChannelSynchronization: { |
186 | enabled: boolean | |
187 | maxPerUser: number | |
188 | } | |
5d08a6a7 | 189 | } |
7ccddd7b | 190 | |
ba5d4a84 RK |
191 | trending: { |
192 | videos: { | |
193 | algorithms: { | |
194 | enabled: string[] | |
195 | default: string | |
196 | } | |
197 | } | |
198 | } | |
199 | ||
7ccddd7b JM |
200 | autoBlacklist: { |
201 | videos: { | |
202 | ofUsers: { | |
203 | enabled: boolean | |
204 | } | |
205 | } | |
206 | } | |
207 | ||
5b9c965d C |
208 | followers: { |
209 | instance: { | |
a1587156 | 210 | enabled: boolean |
14893eb7 | 211 | manualApproval: boolean |
5b9c965d C |
212 | } |
213 | } | |
214 | ||
8424c402 C |
215 | followings: { |
216 | instance: { | |
217 | autoFollowBack: { | |
218 | enabled: boolean | |
219 | } | |
220 | ||
221 | autoFollowIndex: { | |
222 | enabled: boolean | |
223 | indexUrl: string | |
224 | } | |
225 | } | |
226 | } | |
72c33e71 C |
227 | |
228 | broadcastMessage: { | |
229 | enabled: boolean | |
230 | message: string | |
231 | level: BroadcastMessageLevel | |
232 | dismissable: boolean | |
233 | } | |
5fb2e288 C |
234 | |
235 | search: { | |
236 | remoteUri: { | |
237 | users: boolean | |
238 | anonymous: boolean | |
239 | } | |
240 | ||
241 | searchIndex: { | |
242 | enabled: boolean | |
243 | url: string | |
244 | disableLocalSearch: boolean | |
245 | isDefaultSearch: boolean | |
246 | } | |
247 | } | |
b302c80d | 248 | |
fd206f0b | 249 | } |