]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - shared/models/server/custom-config.model.ts
Add 4k conf in transcoding in admin panel
[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 '2160p': boolean
66 }
67 hls: {
68 enabled: boolean
69 }
70 }
71
72 import: {
73 videos: {
74 http: {
75 enabled: boolean
76 },
77 torrent: {
78 enabled: boolean
79 }
80 }
81 }
82
83 autoBlacklist: {
84 videos: {
85 ofUsers: {
86 enabled: boolean
87 }
88 }
89 }
90
91 followers: {
92 instance: {
93 enabled: boolean,
94 manualApproval: boolean
95 }
96 }
97
98 }