Expand description
Server configuration file support with hot-reload.
§Example Configuration (TOML)
listen = "0.0.0.0:8080"
default_target = "127.0.0.1:22"
[routes]
"/ssh" = "127.0.0.1:22"
"/db" = "127.0.0.1:5432"
[tls]
cert = "cert.pem"
key = "key.pem"
# Or use: self_signed = trueStructs§
- Config
Watcher - Watch a configuration file for changes
- Resolved
Config - Resolved server configuration with listen address and routes. Route targets are stored as strings and resolved at connection time.
- Server
File Config - Server configuration loaded from a TOML file
- TlsFile
Config - TLS configuration in config file
Enums§
- Config
Change - Configuration change notification
Functions§
- create_
shared_ config - Create a shared routing config from file config
Type Aliases§
- Shared
Routing Config - Shared routing configuration that can be hot-reloaded