Ensure to rebuild reverse proxy config if http port changes on update

This commit is contained in:
Johannes Zellner
2021-01-22 11:25:26 +01:00
parent 9f9575f46a
commit a9f52ba305
+2 -1
View File
@@ -803,6 +803,7 @@ function update(app, args, progressCallback, callback) {
// FIXME: this does not handle option changes (like multipleDatabases)
const unusedAddons = _.omit(app.manifest.addons, Object.keys(updateConfig.manifest.addons));
const httpPathsChanged = app.manifest.httpPaths !== updateConfig.manifest.httpPaths;
const httpPortChanged = app.manifest.httpPort !== updateConfig.manifest.httpPort;
const proxyAuthChanged = !_.isEqual(safe.query(app.manifest, 'addons.proxyAuth'), safe.query(updateConfig.manifest, 'addons.proxyAuth'));
async.series([
@@ -880,7 +881,7 @@ function update(app, args, progressCallback, callback) {
progressCallback.bind(null, { percent: 90, message: 'Configuring reverse proxy' }),
function (next) {
if (!httpPathsChanged && !proxyAuthChanged) return next();
if (!httpPathsChanged && !proxyAuthChanged && !httpPortChanged) return next();
configureReverseProxy(app, next);
},