]>
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 | |
d9eaee39 | 86 | requiresEmailVerification: boolean |
1f256e7d | 87 | minimumAge: number |
fd206f0b C |
88 | } |
89 | ||
90 | admin: { | |
91 | email: string | |
92 | } | |
93 | ||
a4101923 C |
94 | contactForm: { |
95 | enabled: boolean | |
96 | } | |
97 | ||
fd206f0b C |
98 | user: { |
99 | videoQuota: number | |
bee0abff | 100 | videoQuotaDaily: number |
fd206f0b C |
101 | } |
102 | ||
754b6f5f FC |
103 | videoChannels: { |
104 | maxPerUser: number | |
105 | } | |
106 | ||
fd206f0b C |
107 | transcoding: { |
108 | enabled: boolean | |
d7a25329 | 109 | |
14e2014a | 110 | allowAdditionalExtensions: boolean |
536598cf | 111 | allowAudioFiles: boolean |
d7a25329 | 112 | |
fd206f0b | 113 | threads: number |
9129b769 | 114 | concurrency: number |
1896bca0 C |
115 | |
116 | profile: string | |
117 | ||
c6c0fa6c | 118 | resolutions: ConfigResolutions & { '0p': boolean } |
d7a25329 C |
119 | |
120 | webtorrent: { | |
121 | enabled: boolean | |
122 | } | |
123 | ||
09209296 C |
124 | hls: { |
125 | enabled: boolean | |
126 | } | |
fd206f0b | 127 | } |
5d08a6a7 | 128 | |
c6c0fa6c C |
129 | live: { |
130 | enabled: boolean | |
131 | ||
fb719404 | 132 | allowReplay: boolean |
a056ca48 | 133 | |
f443a746 C |
134 | latencySetting: { |
135 | enabled: boolean | |
136 | } | |
137 | ||
fb719404 | 138 | maxDuration: number |
a056ca48 C |
139 | maxInstanceLives: number |
140 | maxUserLives: number | |
fb719404 | 141 | |
c6c0fa6c C |
142 | transcoding: { |
143 | enabled: boolean | |
144 | threads: number | |
1896bca0 | 145 | profile: string |
c6c0fa6c C |
146 | resolutions: ConfigResolutions |
147 | } | |
148 | } | |
149 | ||
92e66e04 | 150 | videoStudio: { |
c729caf6 C |
151 | enabled: boolean |
152 | } | |
153 | ||
5d08a6a7 C |
154 | import: { |
155 | videos: { | |
9129b769 C |
156 | concurrency: number |
157 | ||
5d08a6a7 C |
158 | http: { |
159 | enabled: boolean | |
a1587156 | 160 | } |
a84b8fa5 C |
161 | torrent: { |
162 | enabled: boolean | |
5d08a6a7 C |
163 | } |
164 | } | |
165 | } | |
7ccddd7b | 166 | |
ba5d4a84 RK |
167 | trending: { |
168 | videos: { | |
169 | algorithms: { | |
170 | enabled: string[] | |
171 | default: string | |
172 | } | |
173 | } | |
174 | } | |
175 | ||
7ccddd7b JM |
176 | autoBlacklist: { |
177 | videos: { | |
178 | ofUsers: { | |
179 | enabled: boolean | |
180 | } | |
181 | } | |
182 | } | |
183 | ||
5b9c965d C |
184 | followers: { |
185 | instance: { | |
a1587156 | 186 | enabled: boolean |
14893eb7 | 187 | manualApproval: boolean |
5b9c965d C |
188 | } |
189 | } | |
190 | ||
8424c402 C |
191 | followings: { |
192 | instance: { | |
193 | autoFollowBack: { | |
194 | enabled: boolean | |
195 | } | |
196 | ||
197 | autoFollowIndex: { | |
198 | enabled: boolean | |
199 | indexUrl: string | |
200 | } | |
201 | } | |
202 | } | |
72c33e71 C |
203 | |
204 | broadcastMessage: { | |
205 | enabled: boolean | |
206 | message: string | |
207 | level: BroadcastMessageLevel | |
208 | dismissable: boolean | |
209 | } | |
5fb2e288 C |
210 | |
211 | search: { | |
212 | remoteUri: { | |
213 | users: boolean | |
214 | anonymous: boolean | |
215 | } | |
216 | ||
217 | searchIndex: { | |
218 | enabled: boolean | |
219 | url: string | |
220 | disableLocalSearch: boolean | |
221 | isDefaultSearch: boolean | |
222 | } | |
223 | } | |
fd206f0b | 224 | } |