mirror of
https://github.com/linuxserver/reverse-proxy-confs.git
synced 2025-08-21 22:03:39 -07:00
fix-jdownloader-websocket
Fix JDownloader websocket configuration for proper VNC display
This commit is contained in:
parent
e972b1a100
commit
8425a0fe83
1 changed files with 27 additions and 0 deletions
|
@ -59,4 +59,31 @@ server {
|
||||||
set $upstream_proto http;
|
set $upstream_proto http;
|
||||||
proxy_pass $upstream_proto://$upstream_app:$upstream_port/websockify;
|
proxy_pass $upstream_proto://$upstream_app:$upstream_port/websockify;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Additional websocket locations for proper VNC display
|
||||||
|
location = /websockify {
|
||||||
|
include /config/nginx/resolver.conf;
|
||||||
|
set $upstream_app jdownloader;
|
||||||
|
set $upstream_port 5800;
|
||||||
|
set $upstream_proto http;
|
||||||
|
proxy_pass $upstream_proto://$upstream_app:$upstream_port/websockify;
|
||||||
|
proxy_http_version 1.1;
|
||||||
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
|
proxy_set_header Connection "upgrade";
|
||||||
|
proxy_set_header Host $host;
|
||||||
|
proxy_buffering off;
|
||||||
|
}
|
||||||
|
|
||||||
|
location ~ ^/websockify/(.*)$ {
|
||||||
|
include /config/nginx/resolver.conf;
|
||||||
|
set $upstream_app jdownloader;
|
||||||
|
set $upstream_port 5800;
|
||||||
|
set $upstream_proto http;
|
||||||
|
proxy_pass $upstream_proto://$upstream_app:$upstream_port/websockify/$1$is_args$args;
|
||||||
|
proxy_http_version 1.1;
|
||||||
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
|
proxy_set_header Connection "upgrade";
|
||||||
|
proxy_set_header Host $host;
|
||||||
|
proxy_buffering off;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue