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/constants.js | |
parent | a2457e9de4a598ea34629bc40eb882ce03ec0ede (diff) | |
download | PeerTube-e22528aca6eb58c8f8005790ac6e76ed4f8ad706.tar.gz PeerTube-e22528aca6eb58c8f8005790ac6e76ed4f8ad706.tar.zst PeerTube-e22528aca6eb58c8f8005790ac6e76ed4f8ad706.zip |
Server: add config endpoint
Diffstat (limited to 'server/initializers/constants.js')
-rw-r--r-- | server/initializers/constants.js | 3 |
1 files changed, 3 insertions, 0 deletions
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 |