mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-22 17:56:30 -05:00
Fixed Syntax Error
This commit is contained in:
parent
bbde79c7d7
commit
8f1c97f4a4
1 changed files with 5 additions and 1 deletions
|
@ -9,7 +9,11 @@ var config = require(path.join(__dirname, '..', 'config.json'))[env];
|
||||||
var debug = process.env.DEBUG ? (process.env.DEBUG === 'true') : ((typeof config.debug === 'boolean') ? config.debug : (env === 'development'));
|
var debug = process.env.DEBUG ? (process.env.DEBUG === 'true') : ((typeof config.debug === 'boolean') ? config.debug : (env === 'development'));
|
||||||
|
|
||||||
// Create function that reads docker secrets but fails fast in case of a non docker environment
|
// Create function that reads docker secrets but fails fast in case of a non docker environment
|
||||||
var handleDockerSecret = fs.existsSync('/run/secrets/') ? function(secret){return fs.existsSync('/run/secrets/' + secret) ? fs.readFileSync('/run/secrets/' + secret) : null;)} : function () {return null}
|
var handleDockerSecret = fs.existsSync('/run/secrets/') ? function(secret) {
|
||||||
|
return fs.existsSync('/run/secrets/' + secret) ? fs.readFileSync('/run/secrets/' + secret) : null;
|
||||||
|
} : function() {
|
||||||
|
return null
|
||||||
|
};
|
||||||
|
|
||||||
// url
|
// url
|
||||||
var domain = process.env.DOMAIN || process.env.HMD_DOMAIN || config.domain || '';
|
var domain = process.env.DOMAIN || process.env.HMD_DOMAIN || config.domain || '';
|
||||||
|
|
Loading…
Reference in a new issue