Merge pull request #186 from mook/config-env-override

Support loading the config file from an envrionment variable (SHOUT_CONFIG)
This commit is contained in:
Mattias Erming 2014-09-27 17:31:22 +02:00
commit 6763be43c0
1 changed files with 4 additions and 0 deletions

View File

@ -187,3 +187,7 @@ module.exports = {
certificate: ""
}
};
if ("SHOUT_CONFIG" in process.env) {
module.exports = require(process.env.SHOUT_CONFIG);
}