Report processor worker refactored to run under another user (nobody) and have its own mysql credentials.
This commit is contained in:
parent
c3edf42ada
commit
2ac89f3365
13 changed files with 159 additions and 204 deletions
|
@ -6,7 +6,7 @@ let redis = require('redis');
|
|||
let Lock = require('redfour');
|
||||
|
||||
module.exports = mysql.createPool(config.mysql);
|
||||
if (config.redis.enabled) {
|
||||
if (config.redis && config.redis.enabled) {
|
||||
|
||||
module.exports.redis = redis.createClient(config.redis);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue