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

feat(config): add environment variable support #4

Merged
merged 3 commits into from
Jan 4, 2025

Conversation

s0up4200
Copy link
Contributor

@s0up4200 s0up4200 commented Dec 10, 2024

Examples

Config

clients:
  qbt:
  qbt2:
  deluge:

qBittorrent

TQM__CLIENTS_QBT_TYPE=qbittorrent
TQM__CLIENTS_QBT_ENABLED=true
TQM__CLIENTS_QBT_FILTER=default
TQM__CLIENTS_QBT_URL=https://qbittorrent.domain.com/
TQM__CLIENTS_QBT_USER=username
TQM__CLIENTS_QBT_PASSWORD=password
TQM__CLIENTS_QBT_DOWNLOAD_PATH=/downloads/torrents
TQM__CLIENTS_QBT_FREE_SPACE_PATH=/downloads/torrents
TQM__CLIENTS_QBT2_TYPE=qbittorrent
TQM__CLIENTS_QBT2_ENABLED=true
TQM__CLIENTS_QBT2_FILTER=default
TQM__CLIENTS_QBT2_URL=https://qbittorrent2.domain.com/
TQM__CLIENTS_QBT2_USER=username
TQM__CLIENTS_QBT2_PASSWORD=password
TQM__CLIENTS_QBT2_DOWNLOAD_PATH=/downloads/torrents
TQM__CLIENTS_QBT2_FREE_SPACE_PATH=/downloads/torrents

Deluge

TQM__CLIENTS_DELUGE_TYPE=deluge
TQM__CLIENTS_DELUGE_ENABLED=true
TQM__CLIENTS_DELUGE_FILTER=default
TQM__CLIENTS_DELUGE_HOST=localhost
TQM__CLIENTS_DELUGE_PORT=58846
TQM__CLIENTS_DELUGE_LOGIN=localclient
TQM__CLIENTS_DELUGE_PASSWORD=deluge-auth-password
TQM__CLIENTS_DELUGE_V2=true
TQM__CLIENTS_DELUGE_DOWNLOAD_PATH=/downloads/torrents/deluge
TQM__CLIENTS_DELUGE_FREE_SPACE_PATH=/downloads/torrents/deluge

Trackers

TQM__TRACKERS_BHD_API_KEY=your-api-key
TQM__TRACKERS_PTP_API_USER=your-api-user
TQM__TRACKERS_PTP_API_KEY=your-api-key

@zze0s zze0s added enhancement New feature or request config labels Jan 4, 2025
config/config.go Outdated Show resolved Hide resolved
@zze0s zze0s merged commit 8c7bd5d into main Jan 4, 2025
2 checks passed
@zze0s zze0s deleted the feature/env-config-support branch January 4, 2025 12:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
config enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants