mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-29 07:03:37 -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")
|
_ = require("underscore")
|
||||||
logger = require("logger-sharelatex")
|
logger = require("logger-sharelatex")
|
||||||
metrics = require("metrics-sharelatex")
|
metrics = require("metrics-sharelatex")
|
||||||
|
Settings = require("settings-sharelatex")
|
||||||
|
|
||||||
module.exports =
|
module.exports =
|
||||||
|
|
||||||
|
@ -33,4 +34,4 @@ module.exports =
|
||||||
if !key?
|
if !key?
|
||||||
key = uuid.v1()
|
key = uuid.v1()
|
||||||
key = key.replace(/\//g,"-")
|
key = key.replace(/\//g,"-")
|
||||||
path.join(__dirname, "../../uploads/#{key}")
|
path.join(Settings.path.uploadFolder, key)
|
||||||
|
|
|
@ -26,6 +26,9 @@ module.exports =
|
||||||
# key: ""
|
# key: ""
|
||||||
# secret: ""
|
# secret: ""
|
||||||
|
|
||||||
|
path:
|
||||||
|
uploadFolder: Path.resolve(__dirname + "/../uploads")
|
||||||
|
|
||||||
# Filestore health check
|
# Filestore health check
|
||||||
# ----------------------
|
# ----------------------
|
||||||
# Project and file details to check in persistor when calling /health_check
|
# Project and file details to check in persistor when calling /health_check
|
||||||
|
|
Loading…
Reference in a new issue