mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-14 20:40:17 -05:00
change the method for assuming s3
This commit is contained in:
parent
e0f0bfb0ea
commit
53bcdccc04
1 changed files with 5 additions and 1 deletions
|
@ -2,9 +2,13 @@ settings = require("settings-sharelatex")
|
|||
logger = require("logger-sharelatex")
|
||||
S3PersistorManager = require("./S3PersistorManager")
|
||||
|
||||
# assume s3 if none specified
|
||||
settings.filestoreBackend ||= "s3"
|
||||
|
||||
|
||||
logger.log backend:settings.filestoreBackend, "Loading backend"
|
||||
module.exports = switch settings.filestoreBackend
|
||||
when "s3",null
|
||||
when "s3"
|
||||
S3PersistorManager
|
||||
else
|
||||
throw new Error( "Unknown filestore backend: #{settings.filestoreBackend}" )
|
||||
|
|
Loading…
Reference in a new issue