forked from finn/tinyboard
setup-opds.sh: add firewall port warning before starting Caddy
This commit is contained in:
@@ -231,6 +231,14 @@ fi
|
||||
|
||||
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"
|
||||
docker rm -f caddy-opds 2>/dev/null || true
|
||||
|
||||
|
||||
Reference in New Issue
Block a user