mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-31 04:41:32 +02:00
Use configurable upload directory
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user