Skip to content

Make it possible to configure with environment variables #55

@Spindel

Description

@Spindel

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.

  1. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions