Module config

Source
Expand description

Initialize configuration from file or env var.

All environment variables are prefixed with TORRUST_IDX_BACK_.

Constants§

ENV_VAR_CONFIG
The whole config.toml file content. It has priority over the config file. Even if the file is not on the default path.
ENV_VAR_CONFIG_PATH
The config.toml file location.
ENV_VAR_CORS_PERMISSIVE
If present, CORS will be permissive.
ENV_VAR_DEFAULT_CONFIG_PATH

Functions§

init_configuration
Initialize configuration from file or env var.