Skip to content

Set API keys through environment variables#740

Merged
mxpv merged 3 commits intomxpv:mainfrom
garlic-hub:api_keys
Jul 22, 2025
Merged

Set API keys through environment variables#740
mxpv merged 3 commits intomxpv:mainfrom
garlic-hub:api_keys

Conversation

@garlic-hub
Copy link
Contributor

@garlic-hub garlic-hub commented Jul 21, 2025

Allows users to set API keys through environment variables. This would be helpful to allow checking in config files to git or to simply provide more flexibility.

Closes #504
Closes #225

Repository owner deleted a comment from claude bot Jul 22, 2025
mxpv added 2 commits July 21, 2025 19:29
- Move environment variable logic from main.go to config.go as requested
- Support multiple API keys separated by spaces for API key rotation
- Add comprehensive unit tests for environment variable functionality
- Update documentation with examples for multiple key support
- Ensure all tests pass and code is properly formatted
- YOUTUBE_API_KEY -> PODSYNC_YOUTUBE_API_KEY
- VIMEO_API_KEY -> PODSYNC_VIMEO_API_KEY
- SOUNDCLOUD_API_KEY -> PODSYNC_SOUNDCLOUD_API_KEY
- TWITCH_API_KEY -> PODSYNC_TWITCH_API_KEY
- Update tests and documentation accordingly
@mxpv
Copy link
Owner

mxpv commented Jul 22, 2025

Thanks!

@mxpv mxpv merged commit bf6237d into mxpv:main Jul 22, 2025
5 checks passed
@xabim
Copy link

xabim commented Feb 6, 2026

Hi there! are this changes going to be integrated in a new version release? I found v2.8.0 doesn't have them and if I want them I need to pin to nightly

Thanks

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.

Feature request: Allow API keys to be set using environment variables Env variables

3 participants