Skip to content

Commit

Permalink
fix: public_cors map
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlougheed committed Jan 17, 2024
1 parent cd6bbe7 commit 0684abe
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions conf/nginx.conf.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 0684abe

Please sign in to comment.