Config struct
#include <src/microserve/config.cppm>
Parsed CLI and YAML configuration (before resolve).
Dual-stack flags are global. --listen / --address / --proto ignore YAML servers (cli_).
Public types
- struct TimeoutConfig
- Connect/read/write timeouts for upstreams.
- struct ServerConfig
- One virtual host as declared in YAML or built from CLI.
Public functions
- auto cli_overrides_servers() const -> bool
- True if CLI listen flags should replace YAML
servers.
Public variables
- int verbosity
- std::string address
- std::string http_bind
- std::string https_bind
- std::string http3_bind
- bool http11
- bool ipv6
- bool no_ipv4
- std::string cert
- std::string key
- std::string dir
- bool cli_listen_set
- bool cli_address_set
- bool cli_proto_set
- std::vector<std::string> cli_listen
- std::string cli_address
- std::vector<Protocol> cli_proto
- std::string federation_file
- bool cli_federation_set
- FederationConfig federation
- bool cli_child
- bool cli_server_index_set
- int cli_server_index
- bool cli_log_stdout
- bool cli_service
-
struct microserve::
Config:: TimeoutConfig timeouts - std::string worker_processes
- std::string error_log
- std::string error_log_level
- std::string pid
- std::string log_dir
- std::string default_type
- struct microserve::Config::@020151130267005113242201073213250373066160132312 microserve
- Process-wide settings from the YAML
microserveblock. - std::vector<BackendConfig> backends
- std::vector<ServerConfig> servers