add MONGO_CONNECTION_STRING and REDIS_PASSWORD

This commit is contained in:
Henry Oswald 2018-10-03 11:31:16 +01:00
parent 872f28117c
commit 1b3f9306ba

View file

@ -1,4 +1,4 @@
module.exports = settings =
internal: internal:
chat: chat:
host: process.env['LISTEN_ADDRESS'] or "localhost" host: process.env['LISTEN_ADDRESS'] or "localhost"
@ -11,10 +11,13 @@ module.exports =
pass: "password" pass: "password"
mongo: mongo:
url : "mongodb://#{process.env['MONGO_HOST'] || "localhost"}/sharelatex" url: process.env['MONGO_CONNECTION_STRING'] or "mongodb://#{process.env["MONGO_HOST"] or "localhost"}/sharelatex"
redis: redis:
web: web:
host: process.env['REDIS_HOST'] || "localhost" host: process.env['REDIS_HOST'] || "localhost"
port: "6379" port: "6379"
password: "" password: process.env['REDIS_PASSWORD'] || ""
module.exports = settings