Open jplimack opened 1 day ago
seems like maybe theres a way to pass a localAddress
to bind to, and this would need to be done through the plumbing of Vite? https://github.com/nodejs/node/blob/main/doc/api/http.md
I'm not a JS expert by any means, any and all help/pointers/tips are appreciated. im also having a hard time believing I'm the first to pioneer this path, so I'm assuming that I'm doing many things wrong.
Describe the bug
I'm running a local
kind
cluster on my macbook and trying to deploy my Sveltekit app. Its working great outside of k8s, but I need to setup a bunch of ancillary things and its time to upgrade the stack.In order to fully test my stack, I require TLS to work and use
mkcert
to generate local certificates, and also havecert-manager
configured to provide self-signed certificates.I cannot figure out the magical incantation to get both node+HMR to bind to IPv4 AND also provide a client configuration pointing at the dns-name, (not 0.0.0.0).
So if in my vite config I set things to bind to 0.0.0.0, I get IPv4, but then my client sees
or
if i set vite to use my dns name, it will bind to IPv6, and then nothing works. Wish there was a way to provide both a bind/listen parameter as well as the hostname to provide to the client so that it would understand that my Ingress controller is terminating TLS. (if I enable passthru TLS, then its L4 and can't do the ws connection upgrade which is L7).
Reproduction
ingress
service
deployment
Logs
No response
System Info
inside container
Severity
blocking all usage of SvelteKit
Additional Information
vite.config.ts
If i flip to use the dns name, it binds wrong