diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-03-10 11:32:39 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-03-10 11:32:39 +0100 |
commit | e22528aca6eb58c8f8005790ac6e76ed4f8ad706 (patch) | |
tree | 9669efb759249438e2b065171f19f817f7d48440 /server/initializers | |
parent | a2457e9de4a598ea34629bc40eb882ce03ec0ede (diff) | |
download | PeerTube-e22528aca6eb58c8f8005790ac6e76ed4f8ad706.tar.gz PeerTube-e22528aca6eb58c8f8005790ac6e76ed4f8ad706.tar.zst PeerTube-e22528aca6eb58c8f8005790ac6e76ed4f8ad706.zip |
Server: add config endpoint
Diffstat (limited to 'server/initializers')
-rw-r--r-- | server/initializers/checker.js | 2 | ||||
-rw-r--r-- | server/initializers/constants.js | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/server/initializers/checker.js b/server/initializers/checker.js index 7adbbb37a..461a851fe 100644 --- a/server/initializers/checker.js +++ b/server/initializers/checker.js | |||
@@ -29,7 +29,7 @@ function checkMissedConfig () { | |||
29 | 'webserver.https', 'webserver.hostname', 'webserver.port', | 29 | 'webserver.https', 'webserver.hostname', 'webserver.port', |
30 | 'database.hostname', 'database.port', 'database.suffix', 'database.username', 'database.password', | 30 | 'database.hostname', 'database.port', 'database.suffix', 'database.username', 'database.password', |
31 | 'storage.certs', 'storage.videos', 'storage.logs', 'storage.thumbnails', 'storage.previews', | 31 | 'storage.certs', 'storage.videos', 'storage.logs', 'storage.thumbnails', 'storage.previews', |
32 | 'admin.email' | 32 | 'admin.email', 'signup.enabled' |
33 | ] | 33 | ] |
34 | const miss = [] | 34 | const miss = [] |
35 | 35 | ||
diff --git a/server/initializers/constants.js b/server/initializers/constants.js index f9247e945..96321b211 100644 --- a/server/initializers/constants.js +++ b/server/initializers/constants.js | |||
@@ -61,6 +61,9 @@ const CONFIG = { | |||
61 | }, | 61 | }, |
62 | ADMIN: { | 62 | ADMIN: { |
63 | EMAIL: config.get('admin.email') | 63 | EMAIL: config.get('admin.email') |
64 | }, | ||
65 | SIGNUP: { | ||
66 | ENABLED: config.get('signup.enabled') | ||
64 | } | 67 | } |
65 | } | 68 | } |
66 | CONFIG.WEBSERVER.URL = CONFIG.WEBSERVER.SCHEME + '://' + CONFIG.WEBSERVER.HOSTNAME + ':' + CONFIG.WEBSERVER.PORT | 69 | CONFIG.WEBSERVER.URL = CONFIG.WEBSERVER.SCHEME + '://' + CONFIG.WEBSERVER.HOSTNAME + ':' + CONFIG.WEBSERVER.PORT |