File tree Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Original file line number Diff line number Diff line change @@ -59,4 +59,31 @@ server {
59
59
set $upstream_proto http;
60
60
proxy_pass $upstream_proto://$upstream_app:$upstream_port/websockify;
61
61
}
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
+ }
62
89
}
You can’t perform that action at this time.
0 commit comments