]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - shared/models/server/custom-config.model.ts
Add import.video.torrent configuration
[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 }
38
39 admin: {
40 email: string
41 }
42
43 user: {
44 videoQuota: number
45 }
46
47 transcoding: {
48 enabled: boolean
49 threads: number
50 resolutions: {
51 '240p': boolean
52 '360p': boolean
53 '480p': boolean
54 '720p': boolean
55 '1080p': boolean
56 }
57 }
58
59 import: {
60 videos: {
61 http: {
62 enabled: boolean
63 },
64 torrent: {
65 enabled: boolean
66 }
67 }
68 }
69 }