Skip to content

Commit

Permalink
additional Nginx proxy header fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Michel Käser committed Aug 11, 2015
1 parent 92b4e27 commit d9eecc0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/confs/nginx/ipynbsrv.conf
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,13 @@ server {
proxy_send_timeout 86400s;

proxy_set_header Host $host;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Protocol $scheme;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Scheme $scheme;
proxy_set_header X-Script-Name /$1/;
proxy_set_header X-Script-Name /ct/$1;

proxy_pass http://$decoded_backend;
}
Expand Down

0 comments on commit d9eecc0

Please sign in to comment.