]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - shared/models/server/custom-config.model.ts
add test for script printing command
[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
10 '2160p': boolean
11}
12
fd206f0b 13export interface CustomConfig {
66b16caf
C
14 instance: {
15 name: string
2e3a0215 16 shortDescription: string
66b16caf
C
17 description: string
18 terms: string
ccc00cb2
C
19 codeOfConduct: string
20
8ae03c37 21 creationReason: string
ccc00cb2
C
22 moderationInformation: string
23 administrator: string
24 maintenanceLifetime: string
25 businessModel: string
be04c6fd 26 hardwareInformation: string
ccc00cb2
C
27
28 languages: string[]
29 categories: number[]
30
f8802489 31 isNSFW: boolean
901637bb 32 defaultClientRoute: string
0883b324 33 defaultNSFWPolicy: NSFWPolicyType
00b5556c
C
34 customizations: {
35 javascript?: string
36 css?: string
37 }
66b16caf
C
38 }
39
7cd4d2ba
C
40 theme: {
41 default: string
42 }
43
8be1afa1
C
44 services: {
45 twitter: {
46 username: string
47 whitelisted: boolean
48 }
49 }
50
fd206f0b
C
51 cache: {
52 previews: {
53 size: number
54 }
40e87e9e
C
55
56 captions: {
57 size: number
58 }
fd206f0b
C
59 }
60
61 signup: {
62 enabled: boolean
63 limit: number
d9eaee39 64 requiresEmailVerification: boolean
fd206f0b
C
65 }
66
67 admin: {
68 email: string
69 }
70
a4101923
C
71 contactForm: {
72 enabled: boolean
73 }
74
fd206f0b
C
75 user: {
76 videoQuota: number
bee0abff 77 videoQuotaDaily: number
fd206f0b
C
78 }
79
80 transcoding: {
81 enabled: boolean
d7a25329 82
14e2014a 83 allowAdditionalExtensions: boolean
536598cf 84 allowAudioFiles: boolean
d7a25329 85
fd206f0b 86 threads: number
c6c0fa6c 87 resolutions: ConfigResolutions & { '0p': boolean }
d7a25329
C
88
89 webtorrent: {
90 enabled: boolean
91 }
92
09209296
C
93 hls: {
94 enabled: boolean
95 }
fd206f0b 96 }
5d08a6a7 97
c6c0fa6c
C
98 live: {
99 enabled: boolean
100
fb719404 101 allowReplay: boolean
a056ca48 102
fb719404 103 maxDuration: number
a056ca48
C
104 maxInstanceLives: number
105 maxUserLives: number
fb719404 106
c6c0fa6c
C
107 transcoding: {
108 enabled: boolean
109 threads: number
110 resolutions: ConfigResolutions
111 }
112 }
113
5d08a6a7
C
114 import: {
115 videos: {
116 http: {
117 enabled: boolean
a1587156 118 }
a84b8fa5
C
119 torrent: {
120 enabled: boolean
5d08a6a7
C
121 }
122 }
123 }
7ccddd7b
JM
124
125 autoBlacklist: {
126 videos: {
127 ofUsers: {
128 enabled: boolean
129 }
130 }
131 }
132
5b9c965d
C
133 followers: {
134 instance: {
a1587156 135 enabled: boolean
14893eb7 136 manualApproval: boolean
5b9c965d
C
137 }
138 }
139
8424c402
C
140 followings: {
141 instance: {
142 autoFollowBack: {
143 enabled: boolean
144 }
145
146 autoFollowIndex: {
147 enabled: boolean
148 indexUrl: string
149 }
150 }
151 }
72c33e71
C
152
153 broadcastMessage: {
154 enabled: boolean
155 message: string
156 level: BroadcastMessageLevel
157 dismissable: boolean
158 }
5fb2e288
C
159
160 search: {
161 remoteUri: {
162 users: boolean
163 anonymous: boolean
164 }
165
166 searchIndex: {
167 enabled: boolean
168 url: string
169 disableLocalSearch: boolean
170 isDefaultSearch: boolean
171 }
172 }
fd206f0b 173}