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:
parent
60f8a89c87
commit
c130080c52
5 changed files with 129 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue