Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Enhancement] Allow pulling config details from env vars #21

Merged
merged 7 commits into from
Sep 9, 2024

Conversation

moleculekayak
Copy link
Owner

@moleculekayak moleculekayak commented Aug 28, 2024

  • Allows setting ENV vars in lieu of config JSON
  • Added config validation
  • Misc. refactors

zakkarry and others added 7 commits August 28, 2024 10:20
* add env vars for api keys

* allow mixing of config file and env var

* change priority of env vars and config

* remove accidental comment

* correct output when loading configuration

* simplify config loading output

* refactor config class

* change config default value to ''

* fix typo

* default bool option to false instead of none as it will get removed from dict anyway

* handle case where INJECT_TORRENTS is unset

* add config value validation at startup

* reformat test

* address review and finish validation

* remove covid async hallucination

* redistribute non-main functions

---------

Co-authored-by: milkers69 <[email protected]>
@moleculekayak moleculekayak changed the title Mk/config validation env vars consolidation [Enhancement] Allow pulling config details from env vars Sep 9, 2024
@moleculekayak moleculekayak marked this pull request as ready for review September 9, 2024 15:53
@moleculekayak moleculekayak merged commit c9d8b6f into master Sep 9, 2024
2 checks passed
@moleculekayak moleculekayak deleted the mk/config-validation-env-vars-consolidation branch September 9, 2024 15:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants