Map Tweaknews secret variable aliases in configure-usenet

Accept TWEAKNEWSLOGIN, TWEAKNEWSPASSWORD, TWEAKNEWSAPI (as host),
TWEAKNEWSSSLPORT, and TWEAKNEWSCONNECTIONS from secrets/.env.
This commit is contained in:
tim 2026-07-22 12:48:07 -07:00
parent d55f3220d9
commit ceba76df85
2 changed files with 37 additions and 33 deletions

View file

@ -1,27 +1,26 @@
# Copy to secrets/.env and fill in. NEVER commit secrets/.env
# Used by scripts/configure-usenet.sh and as a personal password vault.
# scripts/configure-usenet.sh accepts these names (and a few aliases).
# --- NZBgeek (indexer — wire in Prowlarr) ---
NZBGEEK_USERNAME=
NZBGEEK_EMAIL=
# API key from nzbgeek.info account (not the base URL)
NZBGEEK_API_KEY=
# Optional base URL (default https://api.nzbgeek.info/)
NZBGEEK_URL=https://api.nzbgeek.info/
# --- NZBgeek (Prowlarr indexer) ---
NZBGEEKUSERNAME=
NZBGEEKEMAIL=
NZBGEEKAPI=https://api.nzbgeek.info/
# API key (also accepted as NZBGEEK_API_KEY)
NZBKEEPKEY=
# --- Newshosting (Usenet provider — SABnzbd server) ---
NEWSHOSTING_HOST=news.newshosting.com
NEWSHOSTING_PORT=563
NEWSHOSTING_SSL=1
NEWSHOSTING_USER=
NEWSHOSTING_PASS=
# Connections: start ~20 (plan-dependent)
NEWSHOSTING_CONNECTIONS=20
# --- Newshosting (Usenet / SABnzbd) ---
# NEWSHOSTINGAPI is the NNTP host hostname
NEWSHOSTINGAPI=news.newshosting.com
NEWSHOSTINGSSLPORT=563
NEWSHOSTINGUSER=
# also accepted: NEWSHOSTING_PASS, NEWSHOSTINGPASS
HNEWSHOSTINGPASS=
NEWSHOSTINGCONNECTIONS=20
# --- Tweaknews (Usenet provider / fill-in block) ---
TWEAKNEWS_HOST=news.tweaknews.eu
TWEAKNEWS_PORT=563
TWEAKNEWS_SSL=1
TWEAKNEWS_USER=
TWEAKNEWS_PASS=
TWEAKNEWS_CONNECTIONS=10
# --- Tweaknews (Usenet / SABnzbd) ---
# TWEAKNEWSAPI is the NNTP host (e.g. news.tweaknews.eu or newshosting.tweaknews.eu)
TWEAKNEWSAPI=news.tweaknews.eu
TWEAKNEWSSSLPORT=563
TWEAKNEWSLOGIN=
TWEAKNEWSPASSWORD=
TWEAKNEWSCONNECTIONS=40