convex-backend icon indicating copy to clipboard operation
convex-backend copied to clipboard

Failed to construct 'WebSocket': An insecure WebSocket connection may not be initiated from a page loaded over HTTPS.

Open Ahson-Shaikh opened this issue 9 months ago • 3 comments

I'm currently using a proxy after the convex dashboard. It successfully opens up the dashboard, but when I enter the key inside the UI, which I generated from the script. It gives me the below error.

Image

I do clearly understand that my proxy has HTTPS enabled and the dashboard itself doesn't, is there a way I can bypass that?

Ahson-Shaikh avatar Feb 20 '25 19:02 Ahson-Shaikh

I believe you'll have to set up your proxy to accept HTTPS on the outside, terminate the TLS, and then forward the requests as HTTP to the self hosted dashboard.

Something like this https://caddy.community/t/reverse-proxy-can-you-redirect-https-to-http/23883

I've not tried it before. Let us know how it goes if you can get it to work, or if you get more information to keep debugging.

nipunn1313 avatar Feb 26 '25 00:02 nipunn1313

Hi @nipunn1313 - I'm actually working with limitations on the proxy, so I can not edit the proxy configurations. Is there a way for convex to bypass or force scheme of HTTPS?

Ahson-Shaikh avatar Feb 27 '25 06:02 Ahson-Shaikh

not that I know of offhand - but you can try poking around in here and see if you can figure something out?

https://github.com/get-convex/convex-backend/tree/main/npm-packages/dashboard-self-hosted

just rush install, just rush build -t dashboard-self-hosted, and npm run dev should probably work and then you can try to figure out how to go from there?

nipunn1313 avatar Feb 27 '25 07:02 nipunn1313