add web-api host as ana option

This commit is contained in:
Henry Oswald 2018-10-19 19:28:05 +01:00
parent 63d7bb501b
commit 477c446ea8

View file

@ -1,7 +1,7 @@
module.exports = module.exports =
redis: redis:
realtime: realtime:
host: process.env['REDIS_HOST'] or "localhostssss" host: process.env['REDIS_HOST'] or "localhost"
port: process.env['REDIS_PORT'] or "6379" port: process.env['REDIS_PORT'] or "6379"
password: process.env["REDIS_PASSWORD"] or "" password: process.env["REDIS_PASSWORD"] or ""
key_schema: key_schema:
@ -9,14 +9,14 @@ module.exports =
connectedUser: ({project_id, client_id})-> "connected_user:#{project_id}:#{client_id}" connectedUser: ({project_id, client_id})-> "connected_user:#{project_id}:#{client_id}"
documentupdater: documentupdater:
host: process.env['REDIS_HOST'] or "localhostssss" host: process.env['REDIS_HOST'] or "localhost"
port: process.env['REDIS_PORT'] or "6379" port: process.env['REDIS_PORT'] or "6379"
password: process.env["REDIS_PASSWORD"] or "" password: process.env["REDIS_PASSWORD"] or ""
key_schema: key_schema:
pendingUpdates: ({doc_id}) -> "PendingUpdates:#{doc_id}" pendingUpdates: ({doc_id}) -> "PendingUpdates:#{doc_id}"
websessions: websessions:
host: process.env['REDIS_HOST'] or "localhostssss" host: process.env['REDIS_HOST'] or "localhost"
port: process.env['REDIS_PORT'] or "6379" port: process.env['REDIS_PORT'] or "6379"
password: process.env["REDIS_PASSWORD"] or "" password: process.env["REDIS_PASSWORD"] or ""
@ -29,7 +29,7 @@ module.exports =
apis: apis:
web: web:
url: "http://#{process.env['WEB_HOST'] or "localhost"}:3000" url: "http://#{process.env['WEB_API_HOST'] or process.env['WEB_HOST'] or "localhost"}:3000"
user: "sharelatex" user: "sharelatex"
pass: "password" pass: "password"
documentupdater: documentupdater: