]>
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 | } | |
b3d5cb92 C |
62 | |
63 | torrents: { | |
64 | size: number | |
65 | } | |
fd206f0b C |
66 | } |
67 | ||
68 | signup: { | |
69 | enabled: boolean | |
70 | limit: number | |
d9eaee39 | 71 | requiresEmailVerification: boolean |
fd206f0b C |
72 | } |
73 | ||
74 | admin: { | |
75 | email: string | |
76 | } | |
77 | ||
a4101923 C |
78 | contactForm: { |
79 | enabled: boolean | |
80 | } | |
81 | ||
fd206f0b C |
82 | user: { |
83 | videoQuota: number | |
bee0abff | 84 | videoQuotaDaily: number |
fd206f0b C |
85 | } |
86 | ||
87 | transcoding: { | |
88 | enabled: boolean | |
d7a25329 | 89 | |
14e2014a | 90 | allowAdditionalExtensions: boolean |
536598cf | 91 | allowAudioFiles: boolean |
d7a25329 | 92 | |
fd206f0b | 93 | threads: number |
9129b769 | 94 | concurrency: number |
1896bca0 C |
95 | |
96 | profile: string | |
97 | ||
c6c0fa6c | 98 | resolutions: ConfigResolutions & { '0p': boolean } |
d7a25329 C |
99 | |
100 | webtorrent: { | |
101 | enabled: boolean | |
102 | } | |
103 | ||
09209296 C |
104 | hls: { |
105 | enabled: boolean | |
106 | } | |
fd206f0b | 107 | } |
5d08a6a7 | 108 | |
c6c0fa6c C |
109 | live: { |
110 | enabled: boolean | |
111 | ||
fb719404 | 112 | allowReplay: boolean |
a056ca48 | 113 | |
fb719404 | 114 | maxDuration: number |
a056ca48 C |
115 | maxInstanceLives: number |
116 | maxUserLives: number | |
fb719404 | 117 | |
c6c0fa6c C |
118 | transcoding: { |
119 | enabled: boolean | |
120 | threads: number | |
1896bca0 | 121 | profile: string |
c6c0fa6c C |
122 | resolutions: ConfigResolutions |
123 | } | |
124 | } | |
125 | ||
5d08a6a7 C |
126 | import: { |
127 | videos: { | |
9129b769 C |
128 | concurrency: number |
129 | ||
5d08a6a7 C |
130 | http: { |
131 | enabled: boolean | |
a1587156 | 132 | } |
a84b8fa5 C |
133 | torrent: { |
134 | enabled: boolean | |
5d08a6a7 C |
135 | } |
136 | } | |
137 | } | |
7ccddd7b | 138 | |
ba5d4a84 RK |
139 | trending: { |
140 | videos: { | |
141 | algorithms: { | |
142 | enabled: string[] | |
143 | default: string | |
144 | } | |
145 | } | |
146 | } | |
147 | ||
7ccddd7b JM |
148 | autoBlacklist: { |
149 | videos: { | |
150 | ofUsers: { | |
151 | enabled: boolean | |
152 | } | |
153 | } | |
154 | } | |
155 | ||
5b9c965d C |
156 | followers: { |
157 | instance: { | |
a1587156 | 158 | enabled: boolean |
14893eb7 | 159 | manualApproval: boolean |
5b9c965d C |
160 | } |
161 | } | |
162 | ||
8424c402 C |
163 | followings: { |
164 | instance: { | |
165 | autoFollowBack: { | |
166 | enabled: boolean | |
167 | } | |
168 | ||
169 | autoFollowIndex: { | |
170 | enabled: boolean | |
171 | indexUrl: string | |
172 | } | |
173 | } | |
174 | } | |
72c33e71 C |
175 | |
176 | broadcastMessage: { | |
177 | enabled: boolean | |
178 | message: string | |
179 | level: BroadcastMessageLevel | |
180 | dismissable: boolean | |
181 | } | |
5fb2e288 C |
182 | |
183 | search: { | |
184 | remoteUri: { | |
185 | users: boolean | |
186 | anonymous: boolean | |
187 | } | |
188 | ||
189 | searchIndex: { | |
190 | enabled: boolean | |
191 | url: string | |
192 | disableLocalSearch: boolean | |
193 | isDefaultSearch: boolean | |
194 | } | |
195 | } | |
fd206f0b | 196 | } |