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