Skip to content
This repository has been archived by the owner on Dec 26, 2024. It is now read-only.

feat(config): allow env variables inside config #99

Merged
merged 1 commit into from
Dec 12, 2024
Merged

Conversation

buroa
Copy link
Contributor

@buroa buroa commented Dec 4, 2024

This will allow users to do things like setting AUTOBRR_API_KEY="heyo" and making the config like so:

  autobrr:
    host: http://localhost:7474
    apikey: ${AUTOBRR_API_KEY}

Which would get rendered to:

  autobrr:
    host: http://localhost:7474
    apikey: heyo

Copy link
Contributor

@zze0s zze0s left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's pretty cool, didn't know it was so easy! 👍

@zze0s zze0s added enhancement New feature or request config labels Dec 6, 2024
@zze0s zze0s changed the title feat: allow env variables inside config feat(config): allow env variables inside config Dec 6, 2024
@buroa
Copy link
Contributor Author

buroa commented Dec 12, 2024

Hey @s0up4200, when can we merge and cut a release? Thanks!

@s0up4200
Copy link
Contributor

Hey @s0up4200, when can we merge and cut a release? Thanks!

Hey! Sorry, will make a new release tonight 👍

@s0up4200 s0up4200 merged commit 37d21ed into autobrr:main Dec 12, 2024
13 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
config enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants