Expand description
Reverse proxy server implementation.
Listens on a configured port and routes requests to daemon processes based
on the Host header subdomain pattern.
When proxy.https = true, a local CA is auto-generated (via rcgen) and
each incoming TLS connection is served with a per-domain certificate signed
by that CA (SNI-based dynamic certificate issuance).
Structs§
- Cached
Slug Entry - Cached slug entry: pre-resolved namespace + daemon name for a slug.
- Proxy
TlsRoute - How a hostname’s TLS is handled, and which daemon port it maps to.
Functions§
- ensure_
ca - Generate the CA pair unless
usablesays the one on disk will do. - get_
cached_ host_ registry - Return a snapshot of the cached hostname registry, rebuilding if expired.
- get_
cached_ slugs - Return the cached slug table, refreshing from disk if expired.
- serve
- Start the reverse proxy server.