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