Fix crash with alias domains
This commit is contained in:
@@ -514,7 +514,7 @@ async function writeAppNginxConfig(app, fqdn, type, bundle) {
|
||||
data.hideHeaders = [ 'Content-Security-Policy' ];
|
||||
if (reverseProxyConfig.csp.includes('frame-ancestors ')) data.hideHeaders.push('X-Frame-Options');
|
||||
}
|
||||
if (type === apps.SUBDOMAIN_TYPE_PRIMARY) {
|
||||
if (type === apps.SUBDOMAIN_TYPE_PRIMARY || type == apps.SUBDOMAIN_TYPE_ALIAS) {
|
||||
data.proxyAuth = {
|
||||
enabled: app.sso && app.manifest.addons && app.manifest.addons.proxyAuth,
|
||||
id: app.id,
|
||||
|
||||
Reference in New Issue
Block a user