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