]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - shared/models/server/custom-config.model.ts
Merge branch 'feature/audio-upload' into develop
[github/Chocobozzz/PeerTube.git] / shared / models / server / custom-config.model.ts
1 import { NSFWPolicyType } from '../videos/nsfw-policy.type'
2
3 export interface CustomConfig {
4 instance: {
5 name: string
6 shortDescription: string
7 description: string
8 terms: string
9 isNSFW: boolean
10 defaultClientRoute: string
11 defaultNSFWPolicy: NSFWPolicyType
12 customizations: {
13 javascript?: string
14 css?: string
15 }
16 }
17
18 services: {
19 twitter: {
20 username: string
21 whitelisted: boolean
22 }
23 }
24
25 cache: {
26 previews: {
27 size: number
28 }
29
30 captions: {
31 size: number
32 }
33 }
34
35 signup: {
36 enabled: boolean
37 limit: number
38 requiresEmailVerification: boolean
39 }
40
41 admin: {
42 email: string
43 }
44
45 contactForm: {
46 enabled: boolean
47 }
48
49 user: {
50 videoQuota: number
51 videoQuotaDaily: number
52 }
53
54 transcoding: {
55 enabled: boolean
56 allowAdditionalExtensions: boolean
57 allowAudioFiles: boolean
58 threads: number
59 resolutions: {
60 '240p': boolean
61 '360p': boolean
62 '480p': boolean
63 '720p': boolean
64 '1080p': boolean
65 }
66 hls: {
67 enabled: boolean
68 }
69 }
70
71 import: {
72 videos: {
73 http: {
74 enabled: boolean
75 },
76 torrent: {
77 enabled: boolean
78 }
79 }
80 }
81
82 autoBlacklist: {
83 videos: {
84 ofUsers: {
85 enabled: boolean
86 }
87 }
88 }
89
90 followers: {
91 instance: {
92 enabled: boolean,
93 manualApproval: boolean
94 }
95 }
96
97 }