diff options
Diffstat (limited to 'shared/models/config')
-rw-r--r-- | shared/models/config/custom-config.model.ts | 32 | ||||
-rw-r--r-- | shared/models/config/server-config.model.ts | 21 |
2 files changed, 53 insertions, 0 deletions
diff --git a/shared/models/config/custom-config.model.ts b/shared/models/config/custom-config.model.ts new file mode 100644 index 000000000..73b5b6a72 --- /dev/null +++ b/shared/models/config/custom-config.model.ts | |||
@@ -0,0 +1,32 @@ | |||
1 | export interface CustomConfig { | ||
2 | cache: { | ||
3 | previews: { | ||
4 | size: number | ||
5 | } | ||
6 | } | ||
7 | |||
8 | signup: { | ||
9 | enabled: boolean | ||
10 | limit: number | ||
11 | } | ||
12 | |||
13 | admin: { | ||
14 | email: string | ||
15 | } | ||
16 | |||
17 | user: { | ||
18 | videoQuota: number | ||
19 | } | ||
20 | |||
21 | transcoding: { | ||
22 | enabled: boolean | ||
23 | threads: number | ||
24 | resolutions: { | ||
25 | '240p': boolean | ||
26 | '360p': boolean | ||
27 | '480p': boolean | ||
28 | '720p': boolean | ||
29 | '1080p': boolean | ||
30 | } | ||
31 | } | ||
32 | } | ||
diff --git a/shared/models/config/server-config.model.ts b/shared/models/config/server-config.model.ts new file mode 100644 index 000000000..d0b2e40de --- /dev/null +++ b/shared/models/config/server-config.model.ts | |||
@@ -0,0 +1,21 @@ | |||
1 | export interface ServerConfig { | ||
2 | signup: { | ||
3 | allowed: boolean | ||
4 | } | ||
5 | transcoding: { | ||
6 | enabledResolutions: number[] | ||
7 | } | ||
8 | avatar: { | ||
9 | file: { | ||
10 | size: { | ||
11 | max: number | ||
12 | }, | ||
13 | extensions: string[] | ||
14 | } | ||
15 | } | ||
16 | video: { | ||
17 | file: { | ||
18 | extensions: string[] | ||
19 | } | ||
20 | } | ||
21 | } | ||