smart proxy: fixups

This commit is contained in:
Iain Learmonth 2022-08-12 13:42:07 +01:00
parent 9718dbc297
commit f41adc3ce6

View file

@ -185,7 +185,7 @@ class ProxyAutomation(TerraformAutomation):
server { server {
listen 443 ssl; listen 443 ssl;
server_name origin-{{ origin.id }}.{{ provider }}.smart.{{ smart_zone[:-1] }}; server_name origin-{{ origin.id }}.{{ provider }}.smart.{{ smart_zone[:-1] }};
if ($redirect_country = no) { if ($redirect_country = yes) {
rewrite ^ https://{{ origin.domain_name }}$request_uri break; rewrite ^ https://{{ origin.domain_name }}$request_uri break;
} }
location / { location / {