Voltar ao início

Runbooks

Procedimentos operacionais.

Guias curtos para repetir deploys, diagnosticar falhas e manter a VPS com postura segura.

RB-01: Publicar site estático com Docker e Nginx

  1. Gerar pacote do site.
  2. Enviar para `/opt/izyronops-site` na VPS.
  3. Executar `docker build -t izyronops-site:latest .`.
  4. Recriar container com bind em `127.0.0.1:8080:80`.
  5. Validar `curl http://127.0.0.1:8080/health.html`.

RB-02: Corrigir 502 Bad Gateway no Nginx Proxy Manager

  1. Confirmar se o container do site está `healthy`.
  2. Testar acesso direto: `curl http://127.0.0.1:8080/`.
  3. Testar do container NPM: `docker exec nginx-proxy-manager curl http://izyronops-site/health.html`.
  4. Corrigir upstream para `izyronops-site:80` se estiver usando IP incorreto.
  5. Recarregar Nginx e validar HTTP/HTTPS.

RB-03: Restringir SSH e painel admin por IP

  1. Criar regras `/32` na Security List da Oracle para `51822` e `81`.
  2. Remover regras públicas para `22`, `51822`, `81` e `111`.
  3. Aplicar allowlist no firewall local com `izyronops-firewall.service`.
  4. Manter uma sessão SSH aberta durante qualquer mudança de firewall.