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