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 /server/lib/server-config-manager.ts | |
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 'server/lib/server-config-manager.ts')
-rw-r--r-- | server/lib/server-config-manager.ts | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/server/lib/server-config-manager.ts b/server/lib/server-config-manager.ts index 6aa459f82..8aea4cd6d 100644 --- a/server/lib/server-config-manager.ts +++ b/server/lib/server-config-manager.ts | |||
@@ -55,6 +55,15 @@ class ServerConfigManager { | |||
55 | } | 55 | } |
56 | }, | 56 | }, |
57 | 57 | ||
58 | defaults: { | ||
59 | publish: { | ||
60 | downloadEnabled: CONFIG.DEFAULTS.PUBLISH.DOWNLOAD_ENABLED, | ||
61 | commentsEnabled: CONFIG.DEFAULTS.PUBLISH.COMMENTS_ENABLED, | ||
62 | privacy: CONFIG.DEFAULTS.PUBLISH.PRIVACY, | ||
63 | licence: CONFIG.DEFAULTS.PUBLISH.LICENCE | ||
64 | } | ||
65 | }, | ||
66 | |||
58 | webadmin: { | 67 | webadmin: { |
59 | configuration: { | 68 | configuration: { |
60 | edition: { | 69 | edition: { |