From 0684abeec3911d8dae9b9824fde102a76dc89d93 Mon Sep 17 00:00:00 2001 From: David Lougheed Date: Wed, 17 Jan 2024 12:23:29 -0500 Subject: [PATCH] fix: public_cors map --- conf/nginx.conf.tpl | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/conf/nginx.conf.tpl b/conf/nginx.conf.tpl index 43c67c0..2118708 100644 --- a/conf/nginx.conf.tpl +++ b/conf/nginx.conf.tpl @@ -105,24 +105,14 @@ http { ssl_reject_handshake on; } - # Bento Public - map $http_origin $public_cors { - default ''; - https://${BENTOV2_DOMAIN} https://${BENTOV2_DOMAIN}; - https://${BENTOV2_PORTAL_DOMAIN} https://${BENTOV2_PORTAL_DOMAIN}; - } - # tpl__tls_yes__end - # tpl__tls_no__start # Bento Public map $http_origin $public_cors { default ''; - http://${BENTOV2_DOMAIN} http://${BENTOV2_DOMAIN}; - http://${BENTOV2_PORTAL_DOMAIN} http://${BENTOV2_PORTAL_DOMAIN}; + https://${BENTOV2_DOMAIN} https://${BENTOV2_DOMAIN}; + https://${BENTOV2_PORTAL_DOMAIN} https://${BENTOV2_PORTAL_DOMAIN}; } - # tpl__tls_no__end - server { # tpl__tls_yes__start # Use 444 for internal SSL to allow streaming back to self (above)