Skip to content

Commit

Permalink
Added X-Forwarded-Proto header to nginx config.
Browse files Browse the repository at this point in the history
  • Loading branch information
sborsje committed Aug 28, 2011
1 parent eb75ded commit 9fb8d9f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions unicorn/templates/default/nginx_unicorn_web_app.erb
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ server {
root <%= @application[:absolute_document_root] %>;

location / {
proxy_set_header X-Forwarded-Proto https;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_redirect off;
Expand Down

0 comments on commit 9fb8d9f

Please sign in to comment.