]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - shared/models/server/custom-config.model.ts
Add auto follow back support for instances
[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 theme: {
19 default: string
20 }
21
22 services: {
23 twitter: {
24 username: string
25 whitelisted: boolean
26 }
27 }
28
29 cache: {
30 previews: {
31 size: number
32 }
33
34 captions: {
35 size: number
36 }
37 }
38
39 signup: {
40 enabled: boolean
41 limit: number
42 requiresEmailVerification: boolean
43 }
44
45 admin: {
46 email: string
47 }
48
49 contactForm: {
50 enabled: boolean
51 }
52
53 user: {
54 videoQuota: number
55 videoQuotaDaily: number
56 }
57
58 transcoding: {
59 enabled: boolean
60 allowAdditionalExtensions: boolean
61 allowAudioFiles: boolean
62 threads: number
63 resolutions: {
64 '240p': boolean
65 '360p': boolean
66 '480p': boolean
67 '720p': boolean
68 '1080p': boolean
69 '2160p': boolean
70 }
71 hls: {
72 enabled: boolean
73 }
74 }
75
76 import: {
77 videos: {
78 http: {
79 enabled: boolean
80 },
81 torrent: {
82 enabled: boolean
83 }
84 }
85 }
86
87 autoBlacklist: {
88 videos: {
89 ofUsers: {
90 enabled: boolean
91 }
92 }
93 }
94
95 followers: {
96 instance: {
97 enabled: boolean,
98 manualApproval: boolean
99 }
100 }
101
102 followings: {
103 instance: {
104 autoFollowBack: {
105 enabled: boolean
106 }
107
108 autoFollowIndex: {
109 enabled: boolean
110 indexUrl: string
111 }
112 }
113 }
114 }