]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - shared/models/server/custom-config.model.ts
Add 'Most liked videos' page
[github/Chocobozzz/PeerTube.git] / shared / models / server / custom-config.model.ts
CommitLineData
0883b324
C
1import { NSFWPolicyType } from '../videos/nsfw-policy.type'
2
fd206f0b 3export interface CustomConfig {
66b16caf
C
4 instance: {
5 name: string
2e3a0215 6 shortDescription: string
66b16caf
C
7 description: string
8 terms: string
ccc00cb2
C
9 codeOfConduct: string
10
8ae03c37 11 creationReason: string
ccc00cb2
C
12 moderationInformation: string
13 administrator: string
14 maintenanceLifetime: string
15 businessModel: string
be04c6fd 16 hardwareInformation: string
ccc00cb2
C
17
18 languages: string[]
19 categories: number[]
20
f8802489 21 isNSFW: boolean
901637bb 22 defaultClientRoute: string
0883b324 23 defaultNSFWPolicy: NSFWPolicyType
00b5556c
C
24 customizations: {
25 javascript?: string
26 css?: string
27 }
66b16caf
C
28 }
29
7cd4d2ba
C
30 theme: {
31 default: string
32 }
33
8be1afa1
C
34 services: {
35 twitter: {
36 username: string
37 whitelisted: boolean
38 }
39 }
40
fd206f0b
C
41 cache: {
42 previews: {
43 size: number
44 }
40e87e9e
C
45
46 captions: {
47 size: number
48 }
fd206f0b
C
49 }
50
51 signup: {
52 enabled: boolean
53 limit: number
d9eaee39 54 requiresEmailVerification: boolean
fd206f0b
C
55 }
56
57 admin: {
58 email: string
59 }
60
a4101923
C
61 contactForm: {
62 enabled: boolean
63 }
64
fd206f0b
C
65 user: {
66 videoQuota: number
bee0abff 67 videoQuotaDaily: number
fd206f0b
C
68 }
69
70 transcoding: {
71 enabled: boolean
14e2014a 72 allowAdditionalExtensions: boolean
536598cf 73 allowAudioFiles: boolean
fd206f0b
C
74 threads: number
75 resolutions: {
76 '240p': boolean
77 '360p': boolean
78 '480p': boolean
79 '720p': boolean
80 '1080p': boolean
00aa1f0d 81 '2160p': boolean
fd206f0b 82 }
09209296
C
83 hls: {
84 enabled: boolean
85 }
fd206f0b 86 }
5d08a6a7
C
87
88 import: {
89 videos: {
90 http: {
91 enabled: boolean
a84b8fa5
C
92 },
93 torrent: {
94 enabled: boolean
5d08a6a7
C
95 }
96 }
97 }
7ccddd7b
JM
98
99 autoBlacklist: {
100 videos: {
101 ofUsers: {
102 enabled: boolean
103 }
104 }
105 }
106
5b9c965d
C
107 followers: {
108 instance: {
14893eb7
C
109 enabled: boolean,
110 manualApproval: boolean
5b9c965d
C
111 }
112 }
113
8424c402
C
114 followings: {
115 instance: {
116 autoFollowBack: {
117 enabled: boolean
118 }
119
120 autoFollowIndex: {
121 enabled: boolean
122 indexUrl: string
123 }
124 }
125 }
fd206f0b 126}