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