mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 22:23:42 +01:00
Use configurable upload directory
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user