Skip to main content

Module server

Module server 

Source
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§

CachedSlugEntry
Cached slug entry: pre-resolved namespace + daemon name for a slug.
ProxyTlsRoute
How a hostname’s TLS is handled, and which daemon port it maps to.

Functions§

ensure_ca
Generate the CA pair unless usable says 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.