lib/ms_deploy/templates/vhost.erb in ms_deploy-0.1.5 vs lib/ms_deploy/templates/vhost.erb in ms_deploy-0.1.6

- old
+ new

@@ -103,9 +103,14 @@ # The Rack application may also set "X-Accel-Buffering (yes|no)" # in the response headers do disable/enable buffering on a # per-response basis. # proxy_buffering off; + <% if protocol == 'https' %> + # This makes sure that Rack::SslEnforcer knows it's being accessed over SSL. + proxy_set_header X-Forwarded-Proto https; + <% end %> + if (!-f $request_filename) { proxy_pass http://<%= application %>_<%= stage %>_<%= protocol %>_server; break; }