]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - shared/models/server/custom-config.model.ts
Check live duration and size
[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
C
101 allowReplay: boolean
102 maxDuration: number
103
c6c0fa6c
C
104 transcoding: {
105 enabled: boolean
106 threads: number
107 resolutions: ConfigResolutions
108 }
109 }
110
5d08a6a7
C
111 import: {
112 videos: {
113 http: {
114 enabled: boolean
a1587156 115 }
a84b8fa5
C
116 torrent: {
117 enabled: boolean
5d08a6a7
C
118 }
119 }
120 }
7ccddd7b
JM
121
122 autoBlacklist: {
123 videos: {
124 ofUsers: {
125 enabled: boolean
126 }
127 }
128 }
129
5b9c965d
C
130 followers: {
131 instance: {
a1587156 132 enabled: boolean
14893eb7 133 manualApproval: boolean
5b9c965d
C
134 }
135 }
136
8424c402
C
137 followings: {
138 instance: {
139 autoFollowBack: {
140 enabled: boolean
141 }
142
143 autoFollowIndex: {
144 enabled: boolean
145 indexUrl: string
146 }
147 }
148 }
72c33e71
C
149
150 broadcastMessage: {
151 enabled: boolean
152 message: string
153 level: BroadcastMessageLevel
154 dismissable: boolean
155 }
5fb2e288
C
156
157 search: {
158 remoteUri: {
159 users: boolean
160 anonymous: boolean
161 }
162
163 searchIndex: {
164 enabled: boolean
165 url: string
166 disableLocalSearch: boolean
167 isDefaultSearch: boolean
168 }
169 }
fd206f0b 170}