diff --git a/templates/nginx/vhost.j2 b/templates/nginx/vhost.j2 index b45cab5..67396b0 100644 --- a/templates/nginx/vhost.j2 +++ b/templates/nginx/vhost.j2 @@ -1,6 +1,6 @@ #jinja2: lstrip_blocks: True # {{ ansible_managed }} -upstream backend { +upstream backend_unifi { server {{ unifi_server_ip }}:{{ unifi_server_port }}; } @@ -12,7 +12,7 @@ server { return 301 https://$server_name$request_uri; {% else %} location / { - proxy_pass https://backend; + proxy_pass https://backend_unifi; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "Upgrade"; @@ -30,7 +30,7 @@ server { server_name {{ unifi_server_name }}; location / { - proxy_pass https://backend; + proxy_pass https://backend_unifi; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "Upgrade";