Jupyterhub and nginx reverse proxy configuration -




i trying configure jupyterhub proxy route content going my-host-ip/notebook cannot figure out solution.

i using following nginx configuration:

server {         listen 80;         server_name  localhost;          location /notebook {             proxy_pass http://localhost:8000;              # proxy_set_header x-real-ip $remote_addr;             # proxy_set_header host $http_host;             # proxy_set_header x-forwarded-for $proxy_add_x_forwarded_for;         }          location ~* /(user[-/][a-za-z0-9]*)/(api/kernels/[^/]+/(channels|iopub|shell|stdin)|terminals/websocket)/? {             proxy_pass http://localhost:8000;              # proxy_set_header x-real-ip $remote_addr;             # proxy_set_header host $http_host;             # proxy_set_header x-forwarded-for $proxy_add_x_forwarded_for;              # websocket support             proxy_http_version 1.1;             proxy_set_header upgrade $http_upgrade;             proxy_set_header connection "upgrade";             proxy_read_timeout 86400;          }     } 

i fixed using following options jupyterhub configuration file:

# force proxy listen connections 127.0.0.1  c.jupyterhub.ip = '127.0.0.1'   c.jupyterhub.base_url = u'/notebook' 




wiki

Comments

Popular posts from this blog

Asterisk AGI Python Script to Dialplan does not work -

python - Read npy file directly from S3 StreamingBody -

kotlin - Out-projected type in generic interface prohibits the use of metod with generic parameter -