mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-26 20:54:12 +00:00
Provide hosts as environment settings and add npm run start script
This commit is contained in:
parent
7295342ec2
commit
3d050f647b
2 changed files with 11 additions and 7 deletions
|
@ -1,7 +1,7 @@
|
|||
module.exports =
|
||||
redis:
|
||||
realtime:
|
||||
host: "localhost"
|
||||
host: process.env['REDIS_HOST'] or "localhost"
|
||||
port: "6379"
|
||||
password: ""
|
||||
key_schema:
|
||||
|
@ -9,35 +9,35 @@ module.exports =
|
|||
connectedUser: ({project_id, client_id})-> "connected_user:#{project_id}:#{client_id}"
|
||||
|
||||
documentupdater:
|
||||
host: "localhost"
|
||||
host: process.env['REDIS_HOST'] or "localhost"
|
||||
port: "6379"
|
||||
password: ""
|
||||
key_schema:
|
||||
pendingUpdates: ({doc_id}) -> "PendingUpdates:#{doc_id}"
|
||||
|
||||
websessions:
|
||||
host: "localhost"
|
||||
host: process.env['REDIS_HOST'] or "localhost"
|
||||
port: "6379"
|
||||
password: ""
|
||||
|
||||
internal:
|
||||
realTime:
|
||||
port: 3026
|
||||
host: "localhost"
|
||||
host: process.env['LISTEN_ADDRESS'] or "localhost"
|
||||
user: "sharelatex"
|
||||
pass: "password"
|
||||
|
||||
apis:
|
||||
web:
|
||||
url: "http://localhost:3000"
|
||||
url: "http://#{process.env['WEB_HOST'] or "localhost"}:3000"
|
||||
user: "sharelatex"
|
||||
pass: "password"
|
||||
documentupdater:
|
||||
url: "http://localhost:3003"
|
||||
url: "http://#{process.env['DOCUPDATER_HOST'] or "localhost"}:3003"
|
||||
|
||||
security:
|
||||
sessionSecret: "secret-please-change"
|
||||
|
||||
cookieName:"sharelatex.sid"
|
||||
cookieName: "sharelatex.sid"
|
||||
|
||||
max_doc_length: 2 * 1024 * 1024 # 2mb
|
|
@ -7,6 +7,10 @@
|
|||
"type": "git",
|
||||
"url": "https://github.com/sharelatex/real-time-sharelatex.git"
|
||||
},
|
||||
"scripts": {
|
||||
"compile:app": "coffee -o app/js -c app/coffee && coffee -c app.coffee",
|
||||
"start": "npm run compile:app && node app.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"async": "^0.9.0",
|
||||
"basic-auth-connect": "^1.0.0",
|
||||
|
|
Loading…
Reference in a new issue