For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt, and this page is available as Markdown at /producao/caddy-recuperacao.md.

Recuperacao do Caddy

Use este checklist quando algum subdominio retornar Cloudflare 521, 525 ou pagina inesperada.

Verificar Servicos

systemctl status caddy --no-pager
systemctl status nginx --no-pager
sudo ss -ltnp '( sport = :80 or sport = :443 )'

O esperado e o Caddy escutando :80 e :443.

Nginx Ocupando Porta 80

Se o Nginx estiver servindo apenas a pagina padrao e bloqueando o Caddy:

sudo systemctl disable --now nginx
sudo systemctl reset-failed caddy
sudo systemctl start caddy

Valide:

curl -sS https://gera-base.jvbgprojects.com.br/health
curl -sS https://gera-base.jvbgprojects.com.br/ready

Validar Upstreams

podman ps --format '{{.Names}} {{.Status}} {{.Ports}}'
curl -sS http://127.0.0.1:8000/health
curl -sS http://127.0.0.1:8020/

curl -I pode retornar 501 nos apps Python legados porque eles nao implementam HEAD. Use GET para validar pagina.