If you run the E2E tests (./docker/bin/run-e2e-tests.sh), the config.toml file in the root dir is reset to default values. That's because the API allows admins to overwrite the file.
We should change the location for the config.toml file for that test, but it's hardcoded. I'm making some refactorings here that will allow us to easily add a new argument to change the default location for the config.toml file. For example, you could run the app with the following:
cargo run --config ./config.toml
or
TORRUST_IDX_BACK_CONFIG_PATH=./config.toml cargo run