diff options
Diffstat (limited to 'server/initializers')
-rw-r--r-- | server/initializers/checker.ts | 3 | ||||
-rw-r--r-- | server/initializers/constants.ts | 6 |
2 files changed, 8 insertions, 1 deletions
diff --git a/server/initializers/checker.ts b/server/initializers/checker.ts index 739f623c6..9bf53e940 100644 --- a/server/initializers/checker.ts +++ b/server/initializers/checker.ts | |||
@@ -29,7 +29,8 @@ function checkMissedConfig () { | |||
29 | 'user.video_quota', | 29 | 'user.video_quota', |
30 | 'cache.previews.size', 'admin.email', 'signup.enabled', 'signup.limit', 'transcoding.enabled', 'transcoding.threads', | 30 | 'cache.previews.size', 'admin.email', 'signup.enabled', 'signup.limit', 'transcoding.enabled', 'transcoding.threads', |
31 | 'instance.name', 'instance.short_description', 'instance.description', 'instance.terms', 'instance.default_client_route', | 31 | 'instance.name', 'instance.short_description', 'instance.description', 'instance.terms', 'instance.default_client_route', |
32 | 'instance.default_nsfw_policy' | 32 | 'instance.default_nsfw_policy', |
33 | 'services.twitter.username', 'services.twitter.whitelisted' | ||
33 | ] | 34 | ] |
34 | const miss: string[] = [] | 35 | const miss: string[] = [] |
35 | 36 | ||
diff --git a/server/initializers/constants.ts b/server/initializers/constants.ts index c52c27c78..c4e8522c2 100644 --- a/server/initializers/constants.ts +++ b/server/initializers/constants.ts | |||
@@ -174,6 +174,12 @@ const CONFIG = { | |||
174 | get JAVASCRIPT () { return config.get<string>('instance.customizations.javascript') }, | 174 | get JAVASCRIPT () { return config.get<string>('instance.customizations.javascript') }, |
175 | get CSS () { return config.get<string>('instance.customizations.css') } | 175 | get CSS () { return config.get<string>('instance.customizations.css') } |
176 | } | 176 | } |
177 | }, | ||
178 | SERVICES: { | ||
179 | TWITTER: { | ||
180 | get USERNAME () { return config.get<string>('services.twitter.username') }, | ||
181 | get WHITELISTED () { return config.get<boolean>('services.twitter.whitelisted') } | ||
182 | } | ||
177 | } | 183 | } |
178 | } | 184 | } |
179 | 185 | ||