mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-25 11:16:31 -05:00
Use OS based tmp dir
We should use the official OS temp directory instead of an own one, to not run into conflicts. Also various dependencies already use the OS temp directory, which makes it pointless to use a different for our internal purposes then. This commit provides the changes needed to use the OS tmp directory by default. Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
This commit is contained in:
parent
637f955bdd
commit
59b3885dda
2 changed files with 3 additions and 1 deletions
|
@ -1,5 +1,7 @@
|
||||||
'use strict'
|
'use strict'
|
||||||
|
|
||||||
|
const os = require('os')
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
domain: '',
|
domain: '',
|
||||||
urlPath: '',
|
urlPath: '',
|
||||||
|
@ -39,7 +41,7 @@ module.exports = {
|
||||||
dhParamPath: '',
|
dhParamPath: '',
|
||||||
// other path
|
// other path
|
||||||
viewPath: './public/views',
|
viewPath: './public/views',
|
||||||
tmpPath: './tmp',
|
tmpPath: os.tmpdir(),
|
||||||
defaultNotePath: './public/default.md',
|
defaultNotePath: './public/default.md',
|
||||||
docsPath: './public/docs',
|
docsPath: './public/docs',
|
||||||
uploadsPath: './public/uploads',
|
uploadsPath: './public/uploads',
|
||||||
|
|
Loading…
Reference in a new issue