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.