diff --git a/templates/etc/nginx/sites-available/vhost.j2 b/templates/etc/nginx/sites-available/vhost.j2 index b61ad27..a51b378 100644 --- a/templates/etc/nginx/sites-available/vhost.j2 +++ b/templates/etc/nginx/sites-available/vhost.j2 @@ -39,16 +39,16 @@ server { {% endif %} {% if location.proxy_pass is defined and location.proxy_pass %} - proxy_pass {{ location.proxy_pass }}; - {% if location.proxy_http_version is defined and location.proxy_http_version %} - proxy_http_version {{ location.proxy_http_version }}; - {% endif %} - {% if location.proxy_headers is defined and location.proxy_headers %} + proxy_pass {{ location.proxy_pass }}; + {% if location.proxy_http_version is defined and location.proxy_http_version %} + proxy_http_version {{ location.proxy_http_version }}; + {% endif %} + {% if location.proxy_headers is defined and location.proxy_headers %} - {% for pheader in location.proxy_headers %} - proxy_set_header {{ pheader }}; - {% endfor %} - {% endif %} + {% for pheader in location.proxy_headers %} + proxy_set_header {{ pheader }}; + {% endfor %} + {% endif %} {% endif %} }