Use configurable upload directory

This commit is contained in:
James Allen 2014-05-17 21:01:48 +01:00
parent 1f1f535c8b
commit de0d79e1bf
2 changed files with 5 additions and 1 deletions

View file

@ -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)

View file

@ -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