get_server_configuration

Function get_server_configuration 

Source
pub fn get_server_configuration() -> Result<Config, MantaError>
Expand description

Load server.toml. Fails loudly if the file is missing; the error message includes a minimal example and (when a legacy config.toml is detected) a field-by-field migration mapping.

Reads the file at get_server_config_file_path and layers MANTA_*-prefixed environment variables on top (env wins).

ยงErrors