updated condition for enabling proxy headers

Change-Id: I855d98f1ed8cba1e1cff0d80096ec3f2e239fdee
diff --git a/nginx/files/proxy.conf b/nginx/files/proxy.conf
index 7416e3e..1b56ef3 100644
--- a/nginx/files/proxy.conf
+++ b/nginx/files/proxy.conf
@@ -76,7 +76,7 @@
       proxy_set_header X-Forwarded-Host $host{% if site.host.port is defined and site.host.port not in [80,443] %}:{{ site.host.port }}{% endif %};
       proxy_set_header X-Forwarded-Server $host;
       proxy_set_header X-Forwarded-Port $server_port;
-      {%- endif %}
+
       {%- if site.get('ssl', {'enabled': False}).get('enabled', False) %}
       add_header Front-End-Https on;
       {%- endif %}
@@ -85,6 +85,7 @@
       proxy_set_header Upgrade $http_upgrade;
       proxy_set_header Connection "upgrade";
       {%- endif %}
+      {%- endif %}
 
   }