mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
tell tpds sender to use pub url for docstore
This commit is contained in:
parent
063f6c7680
commit
fd53cf0124
3 changed files with 3 additions and 2 deletions
|
@ -42,7 +42,7 @@ module.exports =
|
|||
addDoc : (options, sl_req_id, callback = (err)->)->
|
||||
metrics.inc("tpds.add-doc")
|
||||
{callback, sl_req_id} = slReqIdHelper.getCallbackAndReqId(callback, sl_req_id)
|
||||
options.streamOrigin = settings.apis.docstore.url + path.join("/project/#{options.project_id}/doc/","#{options.doc_id}/raw")
|
||||
options.streamOrigin = settings.apis.docstore.pubUrl + path.join("/project/#{options.project_id}/doc/","#{options.doc_id}/raw")
|
||||
@_addEntity(options, sl_req_id, callback)
|
||||
|
||||
|
||||
|
|
|
@ -76,6 +76,7 @@ module.exports =
|
|||
url : "http://localhost:3015"
|
||||
docstore:
|
||||
url : "http://localhost:3016"
|
||||
pubUrl: "http://localhost:3016"
|
||||
versioning:
|
||||
snapshotwaitms:3000
|
||||
url: "http://localhost:4000"
|
||||
|
|
|
@ -33,7 +33,7 @@ describe 'TpdsUpdateSender', ->
|
|||
filestore:
|
||||
url: filestoreUrl
|
||||
docstore:
|
||||
url: @docstoreUrl
|
||||
pubUrl: @docstoreUrl
|
||||
redis:fairy:{}
|
||||
"logger-sharelatex":{log:->}
|
||||
'../../models/Project': Project:@Project
|
||||
|
|
Loading…
Reference in a new issue