Centralize demo config in .env and add bootstrap-stack.sh

Expand .env.example with ports, AI, Usenet, WireGuard, demo logins, and
bootstrap flags. One script creates dirs, downloads the model, starts
compose, heals gluetun, and configures SABnzbd from the same file.
This commit is contained in:
tim 2026-07-22 13:06:08 -07:00
parent 56ddb349b4
commit 3bf1726a99
7 changed files with 410 additions and 76 deletions

View file

@ -15,7 +15,12 @@ SAB_URL="${SAB_URL:-http://127.0.0.1:8085}"
log() { echo "[configure-usenet] $*"; }
die() { log "ERROR: $*"; exit 1; }
[[ -f "$SECRETS_FILE" ]] || die "missing $SECRETS_FILE (see secrets/.env.example)"
# Prefer secrets/.env; fall back to root .env (tech-demo: everything in one file)
if [[ ! -f "$SECRETS_FILE" && -f "$STACK_DIR/.env" ]]; then
SECRETS_FILE="$STACK_DIR/.env"
log "using $SECRETS_FILE (no secrets/.env)"
fi
[[ -f "$SECRETS_FILE" ]] || die "missing $SECRETS_FILE (see secrets/.env.example or .env.example)"
# shellcheck disable=SC1090
set -a