mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-29 04:53:44 -05:00
Use configurable upload directory
This commit is contained in:
parent
1f1f535c8b
commit
de0d79e1bf
2 changed files with 5 additions and 1 deletions
|
@ -4,6 +4,7 @@ path = require("path")
|
|||
_ = require("underscore")
|
||||
logger = require("logger-sharelatex")
|
||||
metrics = require("metrics-sharelatex")
|
||||
Settings = require("settings-sharelatex")
|
||||
|
||||
module.exports =
|
||||
|
||||
|
@ -33,4 +34,4 @@ module.exports =
|
|||
if !key?
|
||||
key = uuid.v1()
|
||||
key = key.replace(/\//g,"-")
|
||||
path.join(__dirname, "../../uploads/#{key}")
|
||||
path.join(Settings.path.uploadFolder, key)
|
||||
|
|
|
@ -26,6 +26,9 @@ module.exports =
|
|||
# key: ""
|
||||
# secret: ""
|
||||
|
||||
path:
|
||||
uploadFolder: Path.resolve(__dirname + "/../uploads")
|
||||
|
||||
# Filestore health check
|
||||
# ----------------------
|
||||
# Project and file details to check in persistor when calling /health_check
|
||||
|
|
Loading…
Reference in a new issue