You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a barebones vite project and localias install.
❯ bun create vite
✔ Project name: … repro
✔ Select a framework: › React
✔ Select a variant: › TypeScript
Scaffolding project in /private/tmp/A2D5DA12/repro...
Done. Now run:
cd repro
bun install
bun run dev
❯ bun run dev
$ vite
VITE v6.1.1 ready in 96 ms
➜ Local: http://localhost:5173/
➜ Network: use --host to expose
➜ press h + enter to show help
in another terminal, running and trying curl https://frontend.local/ or going from the browser
❯ localias set frontend.local 5173
[added] frontend.local -> 5173
❯ localias list
frontend.local -> 5173
❯ localias run
2025/02/23 18:07:07.942 INFO admin admin endpoint started {"address": "localhost:2019", "enforce_origin": false, "origins": ["//[::1]:2019", "//127.0.0.1:2019", "//localhost:2019"]}
2025/02/23 18:07:07.942 INFO tls.cache.maintenance started background certificate maintenance {"cache": "0x14000701b00"}
2025/02/23 18:07:07.945 INFO http.auto_https server is listening only on the HTTPS port but has no TLS connection policies; adding one to enable TLS {"server_name": "srv1", "https_port": 443}
2025/02/23 18:07:07.945 INFO http.auto_https enabling automatic HTTP->HTTPS redirects {"server_name": "srv1"}
2025/02/23 18:07:07.948 INFO pki.ca.local root certificate is already trusted by system {"path": "storage:pki/authorities/local/root.crt"}
2025/02/23 18:07:07.948 INFO http.log server running {"name": "srv0", "protocols": ["h1", "h2", "h3"]}
2025/02/23 18:07:07.948 INFO http enabling HTTP/3 listener {"addr": ":443"}
2025/02/23 18:07:07.948 INFO http.log server running {"name": "srv1", "protocols": ["h1", "h2", "h3"]}
2025/02/23 18:07:07.948 INFO http.log server running {"name": "remaining_auto_https_redirects", "protocols": ["h1", "h2", "h3"]}
2025/02/23 18:07:07.948 INFO http enabling automatic TLS certificate management {"domains": ["frontend.local"]}
mDNS: serving frontend.local (192.168.0.23,100.116.198.42,::1,127.0.0.1)
2025/02/23 18:07:07.956 WARN tls storage cleaning happened too recently; skipping for now {"storage": "FileStorage:/Users/andreisurugiu/Library/Application Support/localias/caddy", "instance": "438e326f-5e8e-4ac3-a6c7-dad358fb9c48", "try_again": "2025/02/24 18:07:07.956", "try_again_in": 86399.999999334}
2025/02/23 18:07:07.957 INFO tls finished cleaning storage units
2025/02/23 18:07:11.037 ERROR http.log.error dial tcp :5173: connect: connection refused {"request": {"remote_ip": "::1", "remote_port": "56582", "client_ip": "::1", "proto": "HTTP/2.0", "method": "GET", "host": "frontend.local", "uri": "/", "headers": {"Sec-Fetch-Dest": ["document"], "Sec-Fetch-Mode": ["navigate"], "Sec-Fetch-Site": ["none"], "Sec-Fetch-User": ["?1"], "User-Agent": ["Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:135.0) Gecko/20100101 Firefox/135.0"], "Accept": ["text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"], "Accept-Language": ["en-US,en-GB;q=0.7,en;q=0.3"], "Upgrade-Insecure-Requests": ["1"], "Te": ["trailers"], "Accept-Encoding": ["gzip, deflate, br, zstd"], "Dnt": ["1"], "Priority": ["u=0, i"]}, "tls": {"resumed": false, "version": 772, "cipher_suite": 4865, "proto": "h2", "server_name": "frontend.local"}}, "duration": 0.000535083, "status": 502, "err_id": "16bm752ak", "err_trace": "reverseproxy.statusError (reverseproxy.go:1267)"}
This is a barebones vite project and localias install.
in another terminal, running and trying
curl https://frontend.local/
or going from the browserAny ideas?
Note: I found that it works with
bun dev --host
and settingallowedHosts
in vite, but I have no clue why it doesnt work with localhostThe text was updated successfully, but these errors were encountered: