diff --git a/roles/netbox/templates/vhost.j2 b/roles/netbox/templates/vhost.j2 index bad6aa5..2cb10f5 100644 --- a/roles/netbox/templates/vhost.j2 +++ b/roles/netbox/templates/vhost.j2 @@ -10,7 +10,7 @@ server { } location / { - return 301 https://{{ netbox_domain }}$request_uri; + return 301 https://$host$request_uri; } } diff --git a/roles/tileserver/templates/vhost.j2 b/roles/tileserver/templates/vhost.j2 index 0957354..3f2d35c 100644 --- a/roles/tileserver/templates/vhost.j2 +++ b/roles/tileserver/templates/vhost.j2 @@ -10,7 +10,7 @@ server { } location / { - return 301 https://{{ tileserver_domain }}$request_uri; + return 301 https://$host$request_uri; } }