Skip to content

Commit

Permalink
Merge branch 'master' of git.rackster.ch:ipynbsrv/ipynbsrv
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Glatthard committed Aug 12, 2015
2 parents 087eac0 + d9eecc0 commit d6ba160
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions lib/confs/nginx/ipynbsrv.conf
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ server {
# use the Django error pages
# forbidden = 404 so the user doesn't know there is a container
# 50x grouped to 500
error_page 403 404 /error/404;
error_page 500 502 503 504 /error/500;
error_page 403 404 /error/404;
error_page 500 502 503 504 /error/500;

# needed for websockets connections
proxy_http_version 1.1;
Expand All @@ -79,10 +79,14 @@ server {
proxy_read_timeout 86400s;
proxy_send_timeout 86400s;

proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Protocol $scheme;
proxy_set_header X-Real-IP $remote_addr;
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 /ct/$1;

proxy_pass http://$decoded_backend;
}
Expand Down

0 comments on commit d6ba160

Please sign in to comment.