]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - shared/models/server/custom-config.model.ts
Try to fix ARM docker builds
[github/Chocobozzz/PeerTube.git] / shared / models / server / custom-config.model.ts
CommitLineData
0883b324 1import { NSFWPolicyType } from '../videos/nsfw-policy.type'
72c33e71 2import { BroadcastMessageLevel } from './broadcast-message-level.type'
0883b324 3
c6c0fa6c 4export 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 15export 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
fb719404 134 maxDuration: number
a056ca48
C
135 maxInstanceLives: number
136 maxUserLives: number
fb719404 137
c6c0fa6c
C
138 transcoding: {
139 enabled: boolean
140 threads: number
1896bca0 141 profile: string
c6c0fa6c
C
142 resolutions: ConfigResolutions
143 }
144 }
145
5d08a6a7
C
146 import: {
147 videos: {
9129b769
C
148 concurrency: number
149
5d08a6a7
C
150 http: {
151 enabled: boolean
a1587156 152 }
a84b8fa5
C
153 torrent: {
154 enabled: boolean
5d08a6a7
C
155 }
156 }
157 }
7ccddd7b 158
ba5d4a84
RK
159 trending: {
160 videos: {
161 algorithms: {
162 enabled: string[]
163 default: string
164 }
165 }
166 }
167
7ccddd7b
JM
168 autoBlacklist: {
169 videos: {
170 ofUsers: {
171 enabled: boolean
172 }
173 }
174 }
175
5b9c965d
C
176 followers: {
177 instance: {
a1587156 178 enabled: boolean
14893eb7 179 manualApproval: boolean
5b9c965d
C
180 }
181 }
182
8424c402
C
183 followings: {
184 instance: {
185 autoFollowBack: {
186 enabled: boolean
187 }
188
189 autoFollowIndex: {
190 enabled: boolean
191 indexUrl: string
192 }
193 }
194 }
72c33e71
C
195
196 broadcastMessage: {
197 enabled: boolean
198 message: string
199 level: BroadcastMessageLevel
200 dismissable: boolean
201 }
5fb2e288
C
202
203 search: {
204 remoteUri: {
205 users: boolean
206 anonymous: boolean
207 }
208
209 searchIndex: {
210 enabled: boolean
211 url: string
212 disableLocalSearch: boolean
213 isDefaultSearch: boolean
214 }
215 }
fd206f0b 216}