mirror of
https://github.com/overleaf/overleaf.git
synced 2025-01-22 07:41:18 +00:00
Use configurable uploads folder location
This commit is contained in:
parent
93883c7a03
commit
e72dd50089
2 changed files with 3 additions and 2 deletions
|
@ -41,7 +41,7 @@ app.configure ()->
|
|||
app.use express.static(__dirname + '/../../../public', {maxAge: staticCacheAge })
|
||||
app.set 'views', __dirname + '/../../views'
|
||||
app.set 'view engine', 'jade'
|
||||
app.use express.bodyParser(uploadDir: __dirname + "/../../../data/uploads")
|
||||
app.use express.bodyParser(uploadDir: Settings.path.uploadFolder)
|
||||
app.use cookieParser
|
||||
app.use express.session
|
||||
proxy: true
|
||||
|
|
|
@ -196,7 +196,8 @@ module.exports =
|
|||
# If we ever need to write something to disk (e.g. incoming requests
|
||||
# that need processing but may be too big for memory, then write
|
||||
# them to disk here).
|
||||
dumpFolder: Path.resolve "data/dumpFolder"
|
||||
dumpFolder: Path.resolve __dirname + "/../data/dumpFolder"
|
||||
uploadFolder: Path.resolve __dirname + "/../data/uploads"
|
||||
|
||||
# Automatic Snapshots
|
||||
# -------------------
|
||||
|
|
Loading…
Reference in a new issue