aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/initializers
diff options
context:
space:
mode:
Diffstat (limited to 'server/initializers')
-rw-r--r--server/initializers/checker-before-init.ts3
-rw-r--r--server/initializers/config.ts5
2 files changed, 7 insertions, 1 deletions
diff --git a/server/initializers/checker-before-init.ts b/server/initializers/checker-before-init.ts
index 56f8156c6..bd8f02bc0 100644
--- a/server/initializers/checker-before-init.ts
+++ b/server/initializers/checker-before-init.ts
@@ -34,7 +34,8 @@ function checkMissedConfig () {
34 'history.videos.max_age', 'views.videos.remote.max_age', 34 'history.videos.max_age', 'views.videos.remote.max_age',
35 'rates_limit.login.window', 'rates_limit.login.max', 'rates_limit.ask_send_email.window', 'rates_limit.ask_send_email.max', 35 'rates_limit.login.window', 'rates_limit.login.max', 'rates_limit.ask_send_email.window', 'rates_limit.ask_send_email.max',
36 'theme.default', 36 'theme.default',
37 'remote_redundancy.videos.accept_from' 37 'remote_redundancy.videos.accept_from',
38 'federation.videos.federate_unlisted'
38 ] 39 ]
39 const requiredAlternatives = [ 40 const requiredAlternatives = [
40 [ // set 41 [ // set
diff --git a/server/initializers/config.ts b/server/initializers/config.ts
index e2920ce9e..44fd9045b 100644
--- a/server/initializers/config.ts
+++ b/server/initializers/config.ts
@@ -155,6 +155,11 @@ const CONFIG = {
155 URL: config.get<string>('plugins.index.url') 155 URL: config.get<string>('plugins.index.url')
156 } 156 }
157 }, 157 },
158 FEDERATION: {
159 VIDEOS: {
160 FEDERATE_UNLISTED: config.get<boolean>('federation.videos.federate_unlisted')
161 }
162 },
158 ADMIN: { 163 ADMIN: {
159 get EMAIL () { return config.get<string>('admin.email') } 164 get EMAIL () { return config.get<string>('admin.email') }
160 }, 165 },