]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - shared/models/server/custom-config.model.ts
Use a single file instead of segments for HLS
[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 defaultClientRoute: string
10 defaultNSFWPolicy: NSFWPolicyType
11 customizations: {
12 javascript?: string
13 css?: string
14 }
15 }
16
17 services: {
18 twitter: {
19 username: string
20 whitelisted: boolean
21 }
22 }
23
24 cache: {
25 previews: {
26 size: number
27 }
28
29 captions: {
30 size: number
31 }
32 }
33
34 signup: {
35 enabled: boolean
36 limit: number
37 requiresEmailVerification: boolean
38 }
39
40 admin: {
41 email: string
42 }
43
44 contactForm: {
45 enabled: boolean
46 }
47
48 user: {
49 videoQuota: number
50 videoQuotaDaily: number
51 }
52
53 transcoding: {
54 enabled: boolean
55 allowAdditionalExtensions: boolean
56 threads: number
57 resolutions: {
58 '240p': boolean
59 '360p': boolean
60 '480p': boolean
61 '720p': boolean
62 '1080p': boolean
63 }
64 hls: {
65 enabled: boolean
66 }
67 }
68
69 import: {
70 videos: {
71 http: {
72 enabled: boolean
73 },
74 torrent: {
75 enabled: boolean
76 }
77 }
78 }
79 }