Currently the tooling requires a config file on the command line. This is a bit annoying in production and other places, as it means we need various shell scripts to run the code when we could avoid that.
Better way would be to take most of the configuration out of the ini files and move them into environment variables.
Change config file from a parameter on the command line to an environment flag that points to the right config file
After that, the basic settings that are in the config file should probably be replaced:
make log levels a command line option rather than editing configuration files. ( default: warnings and above )
take database-settings via the environment ( DB_URL )
Set paths for the root certificate via environment flags. Error if they aren't set.
The end goals:
Admin tools should be usable from containers without dealing with ini-files.
Server should be configurable using only environment and/or command line flags
Currently the tooling requires a config file on the command line. This is a bit annoying in production and other places, as it means we need various shell scripts to run the code when we could avoid that.
Better way would be to take most of the configuration out of the ini files and move them into environment variables.
After that, the basic settings that are in the config file should probably be replaced:
The end goals: