Update reverse proxy app config on upstreamUri change
This commit is contained in:
@@ -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 });
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user