templates/nginx.conf.erb in capistrano3-nginx-2.1.6 vs templates/nginx.conf.erb in capistrano3-nginx-3.0

- old
+ new

@@ -64,14 +64,15 @@ try_files $uri/index.html $uri @<%= fetch(:application) %>-app-server; location @<%= fetch(:application) %>-app-server { proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-FORWARDED_PROTO http; proxy_set_header Host $http_host; <% if fetch(:nginx_use_ssl) %> proxy_set_header X-Forwarded-Proto https; proxy_set_header X-Forwarded-Ssl on; + <% else %> + proxy_set_header X-Forwarded-Proto http; <% end %> <% if fetch(:nginx_read_timeout) %> proxy_read_timeout <%= fetch(:nginx_read_timeout) %>; <% end %> proxy_redirect off;