Skip to content
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

Support https behind proxy #440

Closed
AlexandreBonaventure opened this issue Jun 23, 2020 · 1 comment
Closed

Support https behind proxy #440

AlexandreBonaventure opened this issue Jun 23, 2020 · 1 comment

Comments

@AlexandreBonaventure
Copy link
Contributor

AlexandreBonaventure commented Jun 23, 2020

Is your feature request related to a problem? Please describe.
We'd like to run vite with a docker development setup. In this case, the https component is already handled by our local proxy (like this one https://github.com/codekitchen/dinghy-http-proxy).
We can't provide any certificates (because certificates are handled top-level in the proxy) https://github.com/vitejs/vite/blob/master/src/node/server/index.ts#L143

Currently:
If we disable https on vite. This is causing different issues with the websocket connection: Mixed content for the websocket connection (because without https vite is serving the connection with ws:// protocol) see screenshot down below

We use to do that a lot with vue-cli where it was working fine, because webpack-dev-server is handling wss connection through a endpoint routed by Express (same port as the main app) as opposed to be accessible at another port.

@linchen1987
Copy link

I encountered the same problem. I want to run vite in https://gitpod.io

@github-actions github-actions bot locked and limited conversation to collaborators Jul 16, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants