aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared
diff options
context:
space:
mode:
Diffstat (limited to 'shared')
-rw-r--r--shared/models/config/custom-config.model.ts32
-rw-r--r--shared/models/config/server-config.model.ts (renamed from shared/models/server-config.model.ts)0
-rw-r--r--shared/models/index.ts2
-rw-r--r--shared/models/users/user-right.enum.ts1
4 files changed, 34 insertions, 1 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 @@
1export 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/server-config.model.ts b/shared/models/config/server-config.model.ts
index d0b2e40de..d0b2e40de 100644
--- a/shared/models/server-config.model.ts
+++ b/shared/models/config/server-config.model.ts
diff --git a/shared/models/index.ts b/shared/models/index.ts
index a88c01608..1b877774c 100644
--- a/shared/models/index.ts
+++ b/shared/models/index.ts
@@ -5,4 +5,4 @@ export * from './videos'
5export * from './job.model' 5export * from './job.model'
6export * from './oauth-client-local.model' 6export * from './oauth-client-local.model'
7export * from './result-list.model' 7export * from './result-list.model'
8export * from './server-config.model' 8export * from './config/server-config.model'
diff --git a/shared/models/users/user-right.enum.ts b/shared/models/users/user-right.enum.ts
index 2e7fa1bcf..1fa149999 100644
--- a/shared/models/users/user-right.enum.ts
+++ b/shared/models/users/user-right.enum.ts
@@ -5,6 +5,7 @@ export enum UserRight {
5 MANAGE_VIDEO_ABUSES, 5 MANAGE_VIDEO_ABUSES,
6 MANAGE_VIDEO_BLACKLIST, 6 MANAGE_VIDEO_BLACKLIST,
7 MANAGE_JOBS, 7 MANAGE_JOBS,
8 MANAGE_CONFIGURATION,
8 REMOVE_ANY_VIDEO, 9 REMOVE_ANY_VIDEO,
9 REMOVE_ANY_VIDEO_CHANNEL, 10 REMOVE_ANY_VIDEO_CHANNEL,
10 REMOVE_ANY_VIDEO_COMMENT 11 REMOVE_ANY_VIDEO_COMMENT