mirror of
https://github.com/getpaseo/paseo.git
synced 2026-10-14 13:22:37 +00:00
Reach IPv6-only workspace services through their proxy URLs (#6753)
* fix(server): reach IPv6-only workspace services Workspace service forwarding and health probes forced IPv4 loopback, returning 502 and unhealthy for a reachable IPv6-only service. Select between both literal loopback addresses for HTTP, upgrades, and probes, without relying on the system's localhost DNS entries. Co-authored-by: Marcelo Barbosa <celocb@gmail.com> * test(server): keep proxy POST mechanics in a helper --------- Co-authored-by: paseo-bot[bot] <266920839+paseo-bot[bot]@users.noreply.github.com> Co-authored-by: Marcelo Barbosa <celocb@gmail.com>
This commit is contained in:
co-authored by
Marcelo Barbosa
parent
e8108d9092
commit
b0f054de90
@@ -4,7 +4,7 @@ Paseo proxies HTTP traffic to services running inside your workspaces. Localhost
|
||||
|
||||
## How it works
|
||||
|
||||
When a `paseo.json` script of `"type": "service"` starts, Paseo assigns it a local port and registers a route in the service proxy. Incoming requests whose `Host` header matches the script's generated hostname are forwarded to that port.
|
||||
When a `paseo.json` script of `"type": "service"` starts, Paseo assigns it a local port and registers a route in the service proxy. Incoming requests whose `Host` header matches the script's generated hostname are forwarded to that port. HTTP requests, WebSocket upgrades, and service health checks select the reachable IPv4 or IPv6 loopback address. Services can bind to `127.0.0.1` or `::1` without changing their proxy URL.
|
||||
|
||||
The generated hostname is built from the script name, branch, and project:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user