]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - shared/models/server/custom-config.model.ts
Add playback metric endpoint sent to OTEL
[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 119
84cae54e
C
120 alwaysTranscodeOriginalResolution: boolean
121
d7a25329
C
122 webtorrent: {
123 enabled: boolean
124 }
125
09209296
C
126 hls: {
127 enabled: boolean
128 }
fd206f0b 129 }
5d08a6a7 130
c6c0fa6c
C
131 live: {
132 enabled: boolean
133
fb719404 134 allowReplay: boolean
a056ca48 135
f443a746
C
136 latencySetting: {
137 enabled: boolean
138 }
139
fb719404 140 maxDuration: number
a056ca48
C
141 maxInstanceLives: number
142 maxUserLives: number
fb719404 143
c6c0fa6c
C
144 transcoding: {
145 enabled: boolean
146 threads: number
1896bca0 147 profile: string
c6c0fa6c 148 resolutions: ConfigResolutions
84cae54e 149 alwaysTranscodeOriginalResolution: boolean
c6c0fa6c
C
150 }
151 }
152
92e66e04 153 videoStudio: {
c729caf6
C
154 enabled: boolean
155 }
156
5d08a6a7
C
157 import: {
158 videos: {
9129b769
C
159 concurrency: number
160
5d08a6a7
C
161 http: {
162 enabled: boolean
a1587156 163 }
a84b8fa5
C
164 torrent: {
165 enabled: boolean
5d08a6a7
C
166 }
167 }
2a491182
F
168 videoChannelSynchronization: {
169 enabled: boolean
170 maxPerUser: number
171 }
5d08a6a7 172 }
7ccddd7b 173
ba5d4a84
RK
174 trending: {
175 videos: {
176 algorithms: {
177 enabled: string[]
178 default: string
179 }
180 }
181 }
182
7ccddd7b
JM
183 autoBlacklist: {
184 videos: {
185 ofUsers: {
186 enabled: boolean
187 }
188 }
189 }
190
5b9c965d
C
191 followers: {
192 instance: {
a1587156 193 enabled: boolean
14893eb7 194 manualApproval: boolean
5b9c965d
C
195 }
196 }
197
8424c402
C
198 followings: {
199 instance: {
200 autoFollowBack: {
201 enabled: boolean
202 }
203
204 autoFollowIndex: {
205 enabled: boolean
206 indexUrl: string
207 }
208 }
209 }
72c33e71
C
210
211 broadcastMessage: {
212 enabled: boolean
213 message: string
214 level: BroadcastMessageLevel
215 dismissable: boolean
216 }
5fb2e288
C
217
218 search: {
219 remoteUri: {
220 users: boolean
221 anonymous: boolean
222 }
223
224 searchIndex: {
225 enabled: boolean
226 url: string
227 disableLocalSearch: boolean
228 isDefaultSearch: boolean
229 }
230 }
fd206f0b 231}