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 }); }