mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
set redis port via env var
This commit is contained in:
parent
93cf574251
commit
ff673c71d5
1 changed files with 4 additions and 4 deletions
|
@ -21,7 +21,7 @@ module.exports =
|
|||
|
||||
redis:
|
||||
realtime:
|
||||
port: "6379"
|
||||
port: process.env["REDIS_PORT"] or "6379"
|
||||
host: process.env["REDIS_HOST"] or "localhost"
|
||||
password: process.env["REDIS_PASSWORD"]
|
||||
key_schema:
|
||||
|
@ -33,7 +33,7 @@ module.exports =
|
|||
# key_schema:
|
||||
# pendingUpdates: ({doc_id}) -> "PendingUpdates:{#{doc_id}}"
|
||||
documentupdater:
|
||||
port: "6379"
|
||||
port: process.env["REDIS_PORT"] or "6379"
|
||||
host: process.env["REDIS_HOST"] or "localhost"
|
||||
password: process.env["REDIS_PASSWORD"]
|
||||
key_schema:
|
||||
|
@ -64,7 +64,7 @@ module.exports =
|
|||
# ranges: ({doc_id}) -> "Ranges:{#{doc_id}}"
|
||||
# projectState: ({project_id}) -> "ProjectState:{#{project_id}}"
|
||||
history:
|
||||
port: "6379"
|
||||
port: process.env["REDIS_PORT"] or "6379"
|
||||
host: process.env["REDIS_HOST"] or "localhost"
|
||||
password: process.env["REDIS_PASSWORD"]
|
||||
key_schema:
|
||||
|
@ -82,7 +82,7 @@ module.exports =
|
|||
# uncompressedHistoryOps: ({doc_id}) -> "UncompressedHistoryOps:{#{doc_id}}"
|
||||
# docsWithHistoryOps: ({project_id}) -> "DocsWithHistoryOps:{#{project_id}}"
|
||||
lock:
|
||||
port: "6379"
|
||||
port: process.env["REDIS_PORT"] or "6379"
|
||||
host: process.env["REDIS_HOST"] or "localhost"
|
||||
password: process.env["REDIS_PASSWORD"]
|
||||
key_schema:
|
||||
|
|
Loading…
Reference in a new issue