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