Skip to content

Commit

Permalink
Merge pull request #32 from GroovyMedia/master
Browse files Browse the repository at this point in the history
Added X-Forwarded-Ssl header to fix invalid CSRF error
  • Loading branch information
blackjid authored Mar 24, 2017
2 parents 235aa28 + 15f99b2 commit 3c1da02
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions templates/nginx.conf.erb
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ server {
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;
<% end %>
<% if fetch(:nginx_read_timeout) %>
proxy_read_timeout <%= fetch(:nginx_read_timeout) %>;
Expand Down

0 comments on commit 3c1da02

Please sign in to comment.