-
-
Notifications
You must be signed in to change notification settings - Fork 6.2k
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
read certificate and show the correct domain when startup #8200
Comments
Getting same issue ! The cert provided is not used by the server |
There appears to be two pieces of this problem:
I'm willing to help with the documentation piece, and I have a good set up for playing with vite and reverse proxies that I'd post if there is someone to look it over. |
Hey @torenware - did you ever resolve this for yourself? |
Kinda. I wrote up how to put vite behind a secure proxy, which covers a lot of this. I did not directly configure Vite to use a specific X509 key pair, since I don't generally do development that way. But AFAIK it would work. |
Describe the bug
I'm trying to serve a Vue.js website from a Docker container using a custom domain and SSL cert. It looks like Vite is not serving the SSL cert and the browser is blocking the site with the error: NET::ERR_CERT_AUTHORITY_INVALID. This is because the browser is not receiving the provided SSL cert and is using the browser default example.org self signed cert.
This is currently working with Vue CLI using the same Docker image and run options.
Here are my Vite server settings:
Server terminal output:
This is working with Vue CLI using the following:
Vue CLI server terminal output:
Is there a way to change "Network" in Vite as we can in Vue CLI?
Reproduction
https://github.com/michaelalhilly/ViteCustomDomain
System Info
Used Package Manager
npm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: