]>
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 |
c6c0fa6c | 90 | resolutions: ConfigResolutions & { '0p': boolean } |
d7a25329 C |
91 | |
92 | webtorrent: { | |
93 | enabled: boolean | |
94 | } | |
95 | ||
09209296 C |
96 | hls: { |
97 | enabled: boolean | |
98 | } | |
fd206f0b | 99 | } |
5d08a6a7 | 100 | |
c6c0fa6c C |
101 | live: { |
102 | enabled: boolean | |
103 | ||
fb719404 | 104 | allowReplay: boolean |
a056ca48 | 105 | |
fb719404 | 106 | maxDuration: number |
a056ca48 C |
107 | maxInstanceLives: number |
108 | maxUserLives: number | |
fb719404 | 109 | |
c6c0fa6c C |
110 | transcoding: { |
111 | enabled: boolean | |
112 | threads: number | |
113 | resolutions: ConfigResolutions | |
114 | } | |
115 | } | |
116 | ||
5d08a6a7 C |
117 | import: { |
118 | videos: { | |
119 | http: { | |
120 | enabled: boolean | |
a1587156 | 121 | } |
a84b8fa5 C |
122 | torrent: { |
123 | enabled: boolean | |
5d08a6a7 C |
124 | } |
125 | } | |
126 | } | |
7ccddd7b | 127 | |
ba5d4a84 RK |
128 | trending: { |
129 | videos: { | |
130 | algorithms: { | |
131 | enabled: string[] | |
132 | default: string | |
133 | } | |
134 | } | |
135 | } | |
136 | ||
7ccddd7b JM |
137 | autoBlacklist: { |
138 | videos: { | |
139 | ofUsers: { | |
140 | enabled: boolean | |
141 | } | |
142 | } | |
143 | } | |
144 | ||
5b9c965d C |
145 | followers: { |
146 | instance: { | |
a1587156 | 147 | enabled: boolean |
14893eb7 | 148 | manualApproval: boolean |
5b9c965d C |
149 | } |
150 | } | |
151 | ||
8424c402 C |
152 | followings: { |
153 | instance: { | |
154 | autoFollowBack: { | |
155 | enabled: boolean | |
156 | } | |
157 | ||
158 | autoFollowIndex: { | |
159 | enabled: boolean | |
160 | indexUrl: string | |
161 | } | |
162 | } | |
163 | } | |
72c33e71 C |
164 | |
165 | broadcastMessage: { | |
166 | enabled: boolean | |
167 | message: string | |
168 | level: BroadcastMessageLevel | |
169 | dismissable: boolean | |
170 | } | |
5fb2e288 C |
171 | |
172 | search: { | |
173 | remoteUri: { | |
174 | users: boolean | |
175 | anonymous: boolean | |
176 | } | |
177 | ||
178 | searchIndex: { | |
179 | enabled: boolean | |
180 | url: string | |
181 | disableLocalSearch: boolean | |
182 | isDefaultSearch: boolean | |
183 | } | |
184 | } | |
fd206f0b | 185 | } |