Skip to content

Commit 8425a0f

Browse files
authored
fix-jdownloader-websocket
Fix JDownloader websocket configuration for proper VNC display
1 parent e972b1a commit 8425a0f

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

jdownloader.subdomain.conf.sample

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,4 +59,31 @@ server {
5959
set $upstream_proto http;
6060
proxy_pass $upstream_proto://$upstream_app:$upstream_port/websockify;
6161
}
62+
63+
# Additional websocket locations for proper VNC display
64+
location = /websockify {
65+
include /config/nginx/resolver.conf;
66+
set $upstream_app jdownloader;
67+
set $upstream_port 5800;
68+
set $upstream_proto http;
69+
proxy_pass $upstream_proto://$upstream_app:$upstream_port/websockify;
70+
proxy_http_version 1.1;
71+
proxy_set_header Upgrade $http_upgrade;
72+
proxy_set_header Connection "upgrade";
73+
proxy_set_header Host $host;
74+
proxy_buffering off;
75+
}
76+
77+
location ~ ^/websockify/(.*)$ {
78+
include /config/nginx/resolver.conf;
79+
set $upstream_app jdownloader;
80+
set $upstream_port 5800;
81+
set $upstream_proto http;
82+
proxy_pass $upstream_proto://$upstream_app:$upstream_port/websockify/$1$is_args$args;
83+
proxy_http_version 1.1;
84+
proxy_set_header Upgrade $http_upgrade;
85+
proxy_set_header Connection "upgrade";
86+
proxy_set_header Host $host;
87+
proxy_buffering off;
88+
}
6289
}

0 commit comments

Comments
 (0)