mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
remove startup dependency on s3 settings
This commit is contained in:
parent
b780df6801
commit
7e6ea2793b
1 changed files with 4 additions and 5 deletions
|
@ -9,12 +9,11 @@ zlib = require "zlib"
|
|||
|
||||
DAYS = 24 * 3600 * 1000 # one day in milliseconds
|
||||
|
||||
AWS_CONFIG = {
|
||||
createStream = (streamConstructor, project_id, doc_id, pack_id) ->
|
||||
AWS_CONFIG =
|
||||
accessKeyId: settings.trackchanges.s3.key
|
||||
secretAccessKey: settings.trackchanges.s3.secret
|
||||
}
|
||||
|
||||
createStream = (streamConstructor, project_id, doc_id, pack_id) ->
|
||||
return streamConstructor new AWS.S3(AWS_CONFIG), {
|
||||
"Bucket": settings.trackchanges.stores.doc_history,
|
||||
"Key": project_id+"/changes-"+doc_id+"/pack-"+pack_id
|
||||
|
|
Loading…
Reference in a new issue