]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - shared/models/server/custom-config.model.ts
Fix transcoding
[github/Chocobozzz/PeerTube.git] / shared / models / server / custom-config.model.ts
CommitLineData
0883b324
C
1import { NSFWPolicyType } from '../videos/nsfw-policy.type'
2
fd206f0b 3export interface CustomConfig {
66b16caf
C
4 instance: {
5 name: string
2e3a0215 6 shortDescription: string
66b16caf
C
7 description: string
8 terms: string
901637bb 9 defaultClientRoute: string
0883b324 10 defaultNSFWPolicy: NSFWPolicyType
00b5556c
C
11 customizations: {
12 javascript?: string
13 css?: string
14 }
66b16caf
C
15 }
16
8be1afa1
C
17 services: {
18 twitter: {
19 username: string
20 whitelisted: boolean
21 }
22 }
23
fd206f0b
C
24 cache: {
25 previews: {
26 size: number
27 }
40e87e9e
C
28
29 captions: {
30 size: number
31 }
fd206f0b
C
32 }
33
34 signup: {
35 enabled: boolean
36 limit: number
d9eaee39 37 requiresEmailVerification: boolean
fd206f0b
C
38 }
39
40 admin: {
41 email: string
42 }
43
44 user: {
45 videoQuota: number
bee0abff 46 videoQuotaDaily: number
fd206f0b
C
47 }
48
49 transcoding: {
50 enabled: boolean
51 threads: number
52 resolutions: {
53 '240p': boolean
54 '360p': boolean
55 '480p': boolean
56 '720p': boolean
57 '1080p': boolean
244b4ae3 58 [key: string]: boolean
fd206f0b
C
59 }
60 }
5d08a6a7
C
61
62 import: {
63 videos: {
64 http: {
65 enabled: boolean
a84b8fa5
C
66 },
67 torrent: {
68 enabled: boolean
5d08a6a7
C
69 }
70 }
71 }
fd206f0b 72}