load configUtil in exports fucntion to delay file exists check so CI can run

This commit is contained in:
Ryan Tharp 2020-08-17 06:10:35 +00:00
parent a716b45950
commit b9e9596fbb
1 changed files with 4 additions and 1 deletions

View File

@ -12,7 +12,7 @@ const libsignal = require('libsignal');
const runMiddleware = require('run-middleware');
const IV_LENGTH = 16;
const configUtil = require('../../server/lib/lib.config.js')
let configUtil
const FILE_SERVER_PRIV_KEY_FILE = 'proxy.key'
const FILE_SERVER_PUB_KEY_FILE = 'proxy.pub'
@ -386,6 +386,9 @@ module.exports = (app, prefix) => {
// set cache based on dispatcher object
cache = app.dispatcher.cache;
// we need config-file-path set up correctly to include this
configUtil = require('../../server/lib/lib.config.js')
// enable runMiddleware
runMiddleware(app); // set it up for fixups
fixUpMiddleware(app); // do the fixups