mirror of
https://github.com/YunoHost-Apps/jupyterlab_ynh.git
synced 2024-09-03 19:26:35 +02:00
25 lines
No EOL
732 B
Nginx Configuration File
25 lines
No EOL
732 B
Nginx Configuration File
location __PATH__/ {
|
|
proxy_pass http://localhost:__PORT__;
|
|
proxy_set_header Host $host;
|
|
proxy_set_header X-Forwarded-Ssl on;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
|
include conf.d/yunohost_panel.conf.inc;
|
|
proxy_set_header Accept-Encoding "";
|
|
}
|
|
|
|
|
|
location ~* __PATH__/(api/kernels/[^/]+/(channels|iopub|shell|stdin)|terminals/websocket)/? {
|
|
proxy_pass http://localhost:__PORT__;
|
|
|
|
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_http_version 1.1;
|
|
|
|
#proxy_set_header Upgrade $http_upgrade;
|
|
proxy_set_header Upgrade "websocket";
|
|
proxy_set_header Connection "upgrade";
|
|
proxy_read_timeout 86400;
|
|
} |