Caddy: keep plex.franksdank.casa HTTP-only (not in the Porkbun account)

This commit is contained in:
Frank committed 2026-08-22 02:44:06 -07:00
1 parent 7f4ce06927
commit 4572a7739d
2 files changed
+12 -3

No files matched your search

+5 -1
View File
@@ -118,7 +118,11 @@ loki.franksdank.cloud {
# ═══════════════════════════════════════════════════════════════ # ═══════════════════════════════════════════════════════════════
# --- Plex (existing, kept) --- # --- Plex (existing, kept) ---
plex.franksdank.casa { # http:// on purpose: franksdank.casa is not hosted in the same Porkbun
# account as franksdank.cloud, so the DNS-01 provider cannot issue a
# Let's Encrypt cert for it. It stays plain-HTTP legacy; the canonical
# name is plex.franksdank.cloud (HTTPS, below).
http://plex.franksdank.casa {
reverse_proxy 192.168.0.235:32400 reverse_proxy 192.168.0.235:32400
} }
+7 -2
View File
@@ -61,8 +61,13 @@ CADDYFILE="$REPO_ROOT/dankclaw/Caddyfile"
# --- Phase 2: real TLS via DNS-01 (Porkbun wildcard cert) --- # --- Phase 2: real TLS via DNS-01 (Porkbun wildcard cert) ---
@test "all vhosts use TLS (no http:// site prefix remains)" { @test "all vhosts use TLS except the legacy .casa name" {
! grep -qE '^http://' "$CADDYFILE" # franksdank.casa is not in the same Porkbun account, so it cannot get
# a DNS-01 Let's Encrypt cert; it stays explicitly http. Every other
# site address must carry no http:// prefix.
local offenders
offenders=$(grep -E '^http://' "$CADDYFILE" | grep -v 'plex\.franksdank\.casa' || true)
[ -z "$offenders" ] || { echo "non-.casa http:// vhosts: $offenders"; return 1; }
} }
@test "the Caddyfile configures the Porkbun DNS-01 provider globally" { @test "the Caddyfile configures the Porkbun DNS-01 provider globally" {