Skip to content

Commit

Permalink
added missing X-Forwarded-Proto directives to all nginx code blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
julianlam committed Aug 2, 2016
1 parent 06bc0ff commit e5e587b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions configuring/proxies/nginx.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ server {
location / {
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 $scheme;
proxy_set_header Host $http_host;
proxy_set_header X-NginX-Proxy true;
Expand All @@ -62,6 +63,7 @@ server {
location / {
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 $scheme;
proxy_set_header Host $http_host;
proxy_set_header X-NginX-Proxy true;
Expand Down
2 changes: 2 additions & 0 deletions configuring/proxies/nginx.rst
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ port ``4567``:
location / {
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 $scheme;
proxy_set_header Host $http_host;
proxy_set_header X-NginX-Proxy true;

Expand All @@ -76,6 +77,7 @@ Below is another nginx configuration for a NodeBB that has port:
location / {
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 $scheme;
proxy_set_header Host $http_host;
proxy_set_header X-NginX-Proxy true;

Expand Down

0 comments on commit e5e587b

Please sign in to comment.