Tailgate guides
Private HTTPS on your own domain
Serve an application over trusted HTTPS on a Headscale network, using DNS-01 certificates and a listener reachable only through the private overlay.
A private application can have a browser-trusted certificate without exposing its web listener to the internet. Tailgate combines a DNS-01 certificate, a private application DNS record and an Nginx listener bound to the service host's enrolled address.
The connection path
- The client resolves an application name such as
photos.apps.example.comto the service host's private overlay address. - Network policy checks whether that device may reach the destination on port 443.
- Nginx accepts HTTPS on that private address and proxies the request to a backend listening on localhost.
- The application performs any additional sign-in and authorization it requires.
The certificate establishes browser trust. It does not grant network access or replace application authentication. Publicly trusted certificates also do not make hostnames secret: certificate transparency records can disclose certificate names.
Configure the service and its access separately
Each Tailgate service entry names a private application FQDN, an enrolled IPv4 address, a host-local HTTP backend and an audience. Use your actual enrolled address and a backend bound to localhost. See the service input contract for the fields and constraints.
Rendering a service creates DNS and proxy configuration, not permission. Keep the initial grants list empty, then explicitly approve the intended source device and destination port. Two names on the same IP and port share a network authorization boundary; separate hostnames alone cannot isolate different audiences.
Obtain and renew the certificate
The pinned lego client proves domain control through a DNS-01 challenge. Give it appropriately scoped credentials for your DNS provider, test with the certificate authority's staging environment, then issue the production certificate. Supply certificate files to the paths expected by Nginx, validate its configuration and reload gracefully.
Schedule renewal and verify it works unattended. DNS-01 does not require a public application HTTP listener. The controller and relay endpoints have separate public connectivity requirements. Follow the certificate and listener contracts during manual deployment.
Verify all three boundaries
- DNS: an enrolled client with the intended DNS configuration resolves the application name to the expected private address.
- TLS: its browser accepts the certificate for that exact name without an exception, and the backend is not exposed directly.
- Access: an approved device connects, an unapproved device fails, and a machine outside the overlay cannot reach the application listener.
Check revocation as well as initial access. A successful HTTPS request proves only that the allowed path works; test denied devices and public reachability separately.
Prepare the network first
Use the Tailgate quickstart to validate and render your Headscale configuration. If you are still choosing an operating model, read Tailgate vs hosted Tailscale.