setup-opds.sh: add firewall port warning before starting Caddy

This commit is contained in:
Justin Oros
2026-04-20 14:53:44 -07:00
parent dfa3c1ce6d
commit 2999c464fa

View File

@@ -231,6 +231,14 @@ fi
info "Caddyfile written to ${CADDY_DIR}/Caddyfile" info "Caddyfile written to ${CADDY_DIR}/Caddyfile"
header "Firewall Check"
warn "Caddy requires ports 80 and 443 to be open on this server."
warn "If using a cloud firewall (e.g. Linode), ensure inbound TCP rules allow:"
warn " Port 80 — required for Let's Encrypt HTTP challenge and HTTP→HTTPS redirect"
warn " Port 443 — required for HTTPS"
echo ""
read -rp "Press ENTER to continue once ports are open..."
header "Starting Caddy" header "Starting Caddy"
docker rm -f caddy-opds 2>/dev/null || true docker rm -f caddy-opds 2>/dev/null || true