Add Cloudflare DDNS for devopshomelab.com (IPv4 A records)

timothyjmiller/cloudflare-ddns with host networking; render env from
secrets (apex + subdomains mc/minecraft/vpn/www/forgejo/jellyfin).
This commit is contained in:
tim 2026-07-22 19:35:21 -07:00
parent 60f8a89c87
commit c130080c52
5 changed files with 129 additions and 0 deletions

View file

@ -119,6 +119,13 @@ fi
# ---------------------------------------------------------------------------
# Usenet bootstrap
# ---------------------------------------------------------------------------
# Cloudflare DDNS (optional — only if secrets present)
if [[ -f "$STACK_DIR/secrets/.env" ]] && grep -qE '^CLOUDFLAREAPIKEY=.+' "$STACK_DIR/secrets/.env" 2>/dev/null; then
log "Rendering Cloudflare DDNS env + starting container"
"$SCRIPT_DIR/render-cloudflare-ddns-env.sh" || log "cloudflare-ddns render failed"
docker compose up -d cloudflare-ddns || log "cloudflare-ddns start failed"
fi
if [[ "$CONFIGURE_USENET" == "true" || "$CONFIGURE_USENET" == "1" ]]; then
log "Waiting for SABnzbd…"
for i in $(seq 1 60); do