Fix upstreamUri verification
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user