diff --git a/lib/confs/nginx/ipynbsrv.conf b/lib/confs/nginx/ipynbsrv.conf index 1379430..3dc84d6 100644 --- a/lib/confs/nginx/ipynbsrv.conf +++ b/lib/confs/nginx/ipynbsrv.conf @@ -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; @@ -79,10 +79,12 @@ 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-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Protocol $scheme; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Scheme $scheme; + proxy_set_header X-Script-Name /$1/; proxy_pass http://$decoded_backend; }