docker-headless-vnc-container icon indicating copy to clipboard operation
docker-headless-vnc-container copied to clipboard

Accessing noVNC with https

Open Goatoverlordwastaken opened this issue 6 years ago • 7 comments

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

Goatoverlordwastaken avatar Mar 26 '19 17:03 Goatoverlordwastaken

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.

salderma avatar Nov 22 '19 15:11 salderma

Did you ever get this to work?

There are some rules here, but it doesn't look solved.

EWouters avatar Mar 25 '20 21:03 EWouters

I am using letsencrypt and have no issue accessing noVNC with https. It is very easy to setup.

amoltxm avatar Jun 03 '20 03:06 amoltxm

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 ?

EWouters avatar Jun 03 '20 06:06 EWouters

I am currently using subfolder to access it but no issue when tried with subdomain either.

amoltxm avatar Jun 03 '20 22:06 amoltxm

Can you share your traefik config?

EWouters avatar Jun 03 '20 22:06 EWouters

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.

amoltxm avatar Jun 03 '20 22:06 amoltxm