Fix upstreamUri verification

This commit is contained in:
Girish Ramakrishnan
2022-11-23 12:53:21 +01:00
parent 258eea4318
commit 817e950d47
4 changed files with 5 additions and 10 deletions

View File

@@ -466,10 +466,6 @@ async function writeAppNginxConfig(app, vhost, type, certificatePath) {
if (app.manifest.id === constants.PROXY_APP_APPSTORE_ID) {
data.endpoint = 'external';
// prevent generating invalid nginx configs
if (!app.upstreamUri) throw new BoxError(BoxError.BAD_FIELD, 'upstreamUri cannot be empty');
data.upstreamUri = app.upstreamUri;
}