mirror of
https://github.com/retspen/webvirtcloud.git
synced 2026-04-25 15:35:57 +03:00
[GH-ISSUE #460] problems with https #281
Labels
No labels
bug
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/webvirtcloud#281
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @mamema on GitHub (Aug 25, 2021).
Original GitHub issue: https://github.com/retspen/webvirtcloud/issues/460
Hi,
i'm using the latest version in a docker container and i'm connecting via ssh to the host. As long as i'm in the LAN environment everything is working including novnc
As this setup should run behind a proxy (HAPROXY) i've tried to follow this example:
https://github.com/retspen/webvirtmgr/issues/253#issuecomment-36834638
but with enabled https isn't working:
also, it's odd that as soon i'm changing
Websock public host
WS_PUBLIC_HOST = to.some.domain.name
Websock Certificate for SSL
WS_CERT = /etc/nginx/cert/cert.pem #cert created as of documentation
the processes are spawning and dying
so 'im stuck here. Any hints?
@mamema commented on GitHub (Aug 27, 2021):
even though i have fixed the spawn errors (config typo in settings.py) it's still not working
it seems a widespread error with novncd via reverse proxies.....
tested with HAPROXy anf nginx always getting the 1006 error in the browser
whenever websockets and reverse proxy terms are used within Dr. Google the solutions are not there
@catborise commented on GitHub (Aug 27, 2021):
did you check these posts: https://github.com/retspen/webvirtcloud/issues/173
@mamema commented on GitHub (Aug 27, 2021):
yes, i have configured everything back and forth according to those post. unfortunately it is not working.
What i have learned during my 2 days googeling, is that other non webvirtcloud users (for example proxmox) are also having problems and it seems it have "something" to do with version. v4 (working) and v5 not working. As your link is an post from 2018, i guess this was the time where an older novnc release was still working
steps i have done:
Try 1 - leave nginx of webvirtcloud on port 80
- WS_PUBLIC_PORT = 80
- WS_PUBLIC_HOST = somedomain.com
..not working
Try 2 - leave nginx on port 80 but set everything else to cert based
- copy wildcard cert.crt/cert.key via cat > into cert.pem
- modify settings.py and modify
- WS_PUBLIC_PORT = 80
- WS_PUBLIC_HOST = somedomain.com
- WS_CERT = /path/to/cert.pem
- modify /opt/webvirtcloud/console/novcnd
- CERT = /path/to/cert.pem
- modifiy /etc/supervisor.d/webvirtcloud.ini
- add --cert /path/to/cert/cert.pem to novcd start path
..not working
Try 3 change nginx of webvirtcloud to port 443
- publish 443 also in docker
- add certs to the appropriate area in webvirtcloud nginx
- do everything else of try 2 except set WS_PUBLIC_PORT = 443
...not working
so i'm out of ideas....
@cyberfarer commented on GitHub (Apr 13, 2022):
Hi I just set this up using Nginx and SSL. WS_PUBLIC_PORT = 443 for me because I am accessing via HTTPS.
I don't think you require any cert info in your settings.py file because the certification, in my case, is handled by NGINX.
My nginx webvirtcloud.conf:
*Note my certificate paths are in nginx.conf and look like this:
My settings.py file is default except for:
WS_PUBLIC_PORT = 443
It all works.
Good luck.