]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - shared/models/server/custom-config.model.ts
Display avatar in embed poster
[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
c729caf6
C
146 videoEditor: {
147 enabled: boolean
148 }
149
5d08a6a7
C
150 import: {
151 videos: {
9129b769
C
152 concurrency: number
153
5d08a6a7
C
154 http: {
155 enabled: boolean
a1587156 156 }
a84b8fa5
C
157 torrent: {
158 enabled: boolean
5d08a6a7
C
159 }
160 }
161 }
7ccddd7b 162
ba5d4a84
RK
163 trending: {
164 videos: {
165 algorithms: {
166 enabled: string[]
167 default: string
168 }
169 }
170 }
171
7ccddd7b
JM
172 autoBlacklist: {
173 videos: {
174 ofUsers: {
175 enabled: boolean
176 }
177 }
178 }
179
5b9c965d
C
180 followers: {
181 instance: {
a1587156 182 enabled: boolean
14893eb7 183 manualApproval: boolean
5b9c965d
C
184 }
185 }
186
8424c402
C
187 followings: {
188 instance: {
189 autoFollowBack: {
190 enabled: boolean
191 }
192
193 autoFollowIndex: {
194 enabled: boolean
195 indexUrl: string
196 }
197 }
198 }
72c33e71
C
199
200 broadcastMessage: {
201 enabled: boolean
202 message: string
203 level: BroadcastMessageLevel
204 dismissable: boolean
205 }
5fb2e288
C
206
207 search: {
208 remoteUri: {
209 users: boolean
210 anonymous: boolean
211 }
212
213 searchIndex: {
214 enabled: boolean
215 url: string
216 disableLocalSearch: boolean
217 isDefaultSearch: boolean
218 }
219 }
fd206f0b 220}