pass redis port

This commit is contained in:
Henry Oswald 2018-10-03 15:01:31 +01:00
parent e322e46900
commit ff8afb6c24
2 changed files with 3 additions and 5 deletions

View file

@ -8,8 +8,6 @@ Settings = require "settings-sharelatex"
if Settings.sentry?.dsn?
logger.initializeErrorReporting(Settings.sentry.dsn)
console.log "dasdsadasdsadsadsadsad"
console.log Settings.redis.websessions
sessionRedisClient = redis.createClient(Settings.redis.websessions)
RedisStore = require('connect-redis')(session)

View file

@ -2,7 +2,7 @@ module.exports =
redis:
realtime:
host: process.env['REDIS_HOST'] or "localhostssss"
port: "6379"
port: process.env['REDIS_PORT'] or "6379"
password: process.env["REDIS_PASSWORD"] or ""
key_schema:
clientsInProject: ({project_id}) -> "clients_in_project:#{project_id}"
@ -10,14 +10,14 @@ module.exports =
documentupdater:
host: process.env['REDIS_HOST'] or "localhostssss"
port: "6379"
port: process.env['REDIS_PORT'] or "6379"
password: process.env["REDIS_PASSWORD"] or ""
key_schema:
pendingUpdates: ({doc_id}) -> "PendingUpdates:#{doc_id}"
websessions:
host: process.env['REDIS_HOST'] or "localhostssss"
port: "6379"
port: process.env['REDIS_PORT'] or "6379"
password: process.env["REDIS_PASSWORD"] or ""
internal: