-
-
Notifications
You must be signed in to change notification settings - Fork 163
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Webtop not working under reverse proxy (undefined is not an object evaluating UI.rfb.lastActiveAt #242
Comments
Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid. |
Webtop works fine behind a reverse proxy, you need to make sure you're handling websockets correctly. |
I got it working. Apparently it doesn't work with a subfolder (example.duckdns.org/webtop) but with the reverse proxy root itself (example.duckdns.org). Is the a way to work with subfolder? Every time in the location directive if I use |
Should work fine with subfolders, we provide a config for that too. Your error looks like it's having issues with web sockets. |
This issue has been automatically marked as stale because it has not had recent activity. This might be due to missing feedback from OP. It will be closed if no further activity occurs. Thank you for your contributions. |
example i used ---
services:
webtop:
image: lscr.io/linuxserver/webtop:ubuntu-kde
container_name: webtop
security_opt:
- seccomp:unconfined #optional
environment:
- TZ=Asia/Shanghai
- SUBFOLDER=/abcd/ #optional
- TITLE=VNC #optional
- CUSTOM_PORT=8888
volumes:
- ./data:/config
- /var/run/docker.sock:/var/run/docker.sock #optional
ports:
- 13000:8888
- 13001:3001
shm_size: "1gb" #optional
restart: unless-stopped nginx config file
and then visit |
Is there an existing issue for this?
Current Behavior
I have installed webtop container (arm64 with alpine-mate tag) and it works fine on lan. Nut if I use it under my nginx reverse proxy I get this error KASMVNC encountered an error
TypeError: undefined is not an object (evaluating UI.rfb.lastActiveAt)
In the same nginx reverse proxy I also have filebrowser and jdowloader containers along with webtop and they are working fine. They are all in the same machine. The only problem comes with webtop, no matter what version I install
This is my nginx.conf
`map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}
server {
listen 8443 ssl;
# server_name localhost;
server_name examplr.duckdns.org;
# ssl_certificate cert.pem;
# ssl_certificate_key cert.key;
ssl_certificate /etc/letsencrypt/live/example.duckdns.org/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/example.duckdns.org/privkey.pem;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers HIGH:!aNULL:!MD5;
location = /webtop {return 301 $scheme://$http_host/webtop/;}
location ^~ /webtop/ {
proxy_pass http://docker-webtop/;
location /webtop/websockify {
proxy_pass http://docker-webtop/websockify;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_read_timeout 86400;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}
}`
Expected Behavior
It should load the webtop without any problem just like it does on lan
Steps To Reproduce
Environment
CPU architecture
arm64
Docker creation
Using the instructions on linuxserver/webtop in docker hub
Container logs
The text was updated successfully, but these errors were encountered: