diff options
author | Chocobozzz <me@florianbigard.com> | 2021-12-14 17:17:01 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-12-14 17:17:01 +0100 |
commit | 3cf68b869decf07ff7435fe1436d4f3134df1bf4 (patch) | |
tree | 836efe5ddc626fef3ba4c96269efbca305f46256 /shared/models/server | |
parent | a6f919e455f2c6ae8f2194da4aa66824a6bfd09e (diff) | |
download | PeerTube-3cf68b869decf07ff7435fe1436d4f3134df1bf4.tar.gz PeerTube-3cf68b869decf07ff7435fe1436d4f3134df1bf4.tar.zst PeerTube-3cf68b869decf07ff7435fe1436d4f3134df1bf4.zip |
Ability for admins to set default upload values
Diffstat (limited to 'shared/models/server')
-rw-r--r-- | shared/models/server/server-config.model.ts | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/shared/models/server/server-config.model.ts b/shared/models/server/server-config.model.ts index 9f17276e0..9c3dcd6d3 100644 --- a/shared/models/server/server-config.model.ts +++ b/shared/models/server/server-config.model.ts | |||
@@ -1,3 +1,4 @@ | |||
1 | import { VideoPrivacy } from '../videos/video-privacy.enum' | ||
1 | import { ClientScript } from '../plugins/plugin-package-json.model' | 2 | import { ClientScript } from '../plugins/plugin-package-json.model' |
2 | import { NSFWPolicyType } from '../videos/nsfw-policy.type' | 3 | import { NSFWPolicyType } from '../videos/nsfw-policy.type' |
3 | import { BroadcastMessageLevel } from './broadcast-message-level.type' | 4 | import { BroadcastMessageLevel } from './broadcast-message-level.type' |
@@ -47,6 +48,15 @@ export interface ServerConfig { | |||
47 | } | 48 | } |
48 | } | 49 | } |
49 | 50 | ||
51 | defaults: { | ||
52 | publish: { | ||
53 | downloadEnabled: boolean | ||
54 | commentsEnabled: boolean | ||
55 | privacy: VideoPrivacy | ||
56 | licence: number | ||
57 | } | ||
58 | } | ||
59 | |||
50 | webadmin: { | 60 | webadmin: { |
51 | configuration: { | 61 | configuration: { |
52 | edition: { | 62 | edition: { |