Skip to content

Domain bindings

The edge carries a domain’s requests to a machine over the machine’s tunnel, at the port the route names. TLS terminates at the edge.

Diagram

Create a tunnel, assign it to the machine, and point a path on the domain at it:

Terminal window
deployport via tunnels create --label api
deployport machinery assign-tunnel <machine-id> <tunnel-id>
deployport via domains resources create-tunnel-route --domain api.example.com --path / --tunnel-id <tunnel-id> --port 8080

The tunnel belongs to the account and outlives any machine, so reassigning it to another machine keeps the routes that point at it.