From d55a6a5eec4904393a2be2c85b6483375f015a90 Mon Sep 17 00:00:00 2001 From: Johannes Zellner Date: Wed, 8 Jun 2022 11:50:27 +0200 Subject: [PATCH] Update reverse proxy app config on upstreamUri change --- src/apps.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/apps.js b/src/apps.js index 9e241b7c6..6b1e6bbef 100644 --- a/src/apps.js +++ b/src/apps.js @@ -1448,7 +1448,10 @@ async function setUpstreamUri(app, upstreamUri, auditSource) { let error = validateUpstreamUri(upstreamUri); if (error) throw error; + await reverseProxy.writeAppConfig(_.extend({}, app, { upstreamUri })); + await update(appId, { upstreamUri }); + await eventlog.add(eventlog.ACTION_APP_CONFIGURE, auditSource, { appId, app, upstreamUri }); }