docker-headless-vnc-container
docker-headless-vnc-container copied to clipboard
Accessing noVNC with https
Hey, I have a setup which makes traefik redirect the subdomains I add from my cloudflare DNS, so I put the headless-vnc-container on my subdomain as vnc.domain.com I receive a bad gateway error due to the ssl being rejected on a http connection, I didn't find a https port in the usage of noVNC too, is there a way I can connect over https instead of http
Hi @Goatoverlordwastaken, I'm new here and not an expert. I'm working with Traefik (also new to me), but found that I can make Traefik terminate SSL and proxy to a one of these containers. I'm not sure if I read you query correctly, but for my experiment I am starting the novnc container with the following labels:
traefik.http.routers.novnc-https.entrypoints=websecure
traefik.http.routers.novnc-https.tls=true
traefik.http.routers.novnc-https.rule=Host(`<your subdomain>`)
traefik.http.services.novnc-https.loadbalancer.server.port=6901
traefik.http.services.novnc-https.loadbalancer.server.scheme=http
traefik.http.middlewares.novnc-headers.headers.customrequestheaders.X-Forwarded-Proto=https
EDIT I should add this is using Traefik V2.
I am using letsencrypt and have no issue accessing noVNC with https. It is very easy to setup.
I am using letsencrypt and have no issue accessing noVNC with https. It is very easy to setup.
This issue is about hosting noVNC on a subdomain. Did you get that setup @amoltxm ?
I am currently using subfolder to access it but no issue when tried with subdomain either.
Can you share your traefik config?
I am using nginx in letsencrypt not traefik. I will try traefik later. Not promise anything since this will be my first time using traefik.