Skip to content

Environment variable config support #68

Open
@duncte123

Description

@duncte123

I'm hosting my own instance of butler on a server. And since I'm planning to make that instance run with docker instead I thought that I might as well make the config accept env vars with a program flag.

The idea is that by running java -Dconfig_type=env -jar Bot.jar it will switch the way it loads any configurations and parse them from the env instead.
The env keys will most likely be prefixed with BUTLER_ (eg BUTLER_BOT_TOKEN=....).

I'm also going to make a wrapper class that can serialize and deserialize the JSON config when the config type is not set to env.

I made this issue to track any ideas and must-haves before starting.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions