diff --git a/deploy/scripts/deploy.sh b/deploy/scripts/deploy.sh index 3f81f12..7417f21 100755 --- a/deploy/scripts/deploy.sh +++ b/deploy/scripts/deploy.sh @@ -129,7 +129,7 @@ log "WordPress: http://localhost:8080/wp-json/wp/v2/" log "Nginx: http://localhost/" log "" log "Remaining manual steps:" -log " 1. Add DHCP reservation for 10.10.50.140 on the router" -log " 2. Configure NPM proxy host: newsproject.bitreport.pt → http://10.10.50.140" +log " 1. IP 10.10.50.204 is static (BIT-24053: systemd-networkd + PVE config; MAC BC:24:11:77:5B:E6) — no DHCP reservation needed" +log " 2. Configure NPM proxy host: newsproject.bitreport.pt → http://10.10.50.204 (NPM proxy #20)" log " 3. Enable HTTPS in NPM (Let's Encrypt)" log " 4. Review $ENV_DIR/frontend.env and $ENV_DIR/bridge.env" diff --git a/docs/monitoring.md b/docs/monitoring.md index 0f69c5f..10b0233 100644 --- a/docs/monitoring.md +++ b/docs/monitoring.md @@ -1,6 +1,6 @@ # Service Health Monitoring -Automated health monitoring and alerting for the news-platform services on **CT 222** (`news-project-test`, **10.10.50.140**). +Automated health monitoring and alerting for the news-platform services on **CT 222** (`news-project-test`, **10.10.50.204**). **BIT-746** adds a **must-not-fail inventory**, optional **public URL** probing, optional **bridge deep** checks, and an **escalation runbook**: `docs/runbooks/NEWS_PLATFORM_MONITORING_ALERTS_BIT746.md`. **BIT-3915** adds **pipeline incident** coverage (aggregator stall, lag signals, escalation): `docs/runbooks/NEWS_PLATFORM_INCIDENT_RUNBOOK_BIT3915.md`. **Runbook index:** `docs/runbooks/README.md` (links deployment, smoke script, and company-wide **paperclip** runbooks). diff --git a/docs/runbooks/NEWS_PLATFORM_INCIDENT_RUNBOOK_BIT3915.md b/docs/runbooks/NEWS_PLATFORM_INCIDENT_RUNBOOK_BIT3915.md index 95be8ee..66692dd 100644 --- a/docs/runbooks/NEWS_PLATFORM_INCIDENT_RUNBOOK_BIT3915.md +++ b/docs/runbooks/NEWS_PLATFORM_INCIDENT_RUNBOOK_BIT3915.md @@ -1,6 +1,6 @@ # News platform — incident response (aggregator, lag, escalation) — BIT-3915 -Operational incident guide for the **news-platform** stack (Astro SSR, Fastify bridge, headless WordPress, optional **writer-pipeline** aggregator). Default deployment context: **LXC CT 222** (`news-project-test`, **10.10.50.140**, VLAN 1050) — confirm VMID/IP against the current inventory in the **paperclip** meta-repo (`docs/environments/03-lxc.md`). +Operational incident guide for the **news-platform** stack (Astro SSR, Fastify bridge, headless WordPress, optional **writer-pipeline** aggregator). Default deployment context: **LXC CT 222** (`news-project-test`, **10.10.50.204**, VLAN 1050) — confirm VMID/IP against the current inventory in the **paperclip** meta-repo (`docs/environments/03-lxc.md`). ## How this runbook fits diff --git a/docs/runbooks/NEWS_PLATFORM_MONITORING_ALERTS_BIT746.md b/docs/runbooks/NEWS_PLATFORM_MONITORING_ALERTS_BIT746.md index 3210eac..e33cc83 100644 --- a/docs/runbooks/NEWS_PLATFORM_MONITORING_ALERTS_BIT746.md +++ b/docs/runbooks/NEWS_PLATFORM_MONITORING_ALERTS_BIT746.md @@ -1,6 +1,6 @@ # News platform — monitoring alerts and escalation (BIT-746) -Follow-up to incident **BIT-743** (public `/noticias` unavailable while internal checks looked fine). This runbook applies to **CT 222** (`news-project-test`, **10.10.50.140**) and the **news-platform** stack deployed under `/opt/news-platform`. +Follow-up to incident **BIT-743** (public `/noticias` unavailable while internal checks looked fine). This runbook applies to **CT 222** (`news-project-test`, **10.10.50.204**) and the **news-platform** stack deployed under `/opt/news-platform`. ## Must-not-fail inventory (MVP) diff --git a/wordpress/README.md b/wordpress/README.md index 310065c..5e7ee26 100644 --- a/wordpress/README.md +++ b/wordpress/README.md @@ -36,8 +36,8 @@ WP_ADMIN_PASSWORD=your_password docker compose exec wordpress bash /var/www/html After setup, the REST API is available at: ``` -http://10.10.50.140:8080/wp-json/wp/v2/posts -http://10.10.50.140:8080/wp-json/wp/v2/categories +http://10.10.50.204:8080/wp-json/wp/v2/posts +http://10.10.50.204:8080/wp-json/wp/v2/categories ``` The Fastify bridge (port 3200) proxies these endpoints and adds Redis caching. @@ -82,7 +82,7 @@ Credenciais: cofre da equipa (nunca em git). Se ainda não existir utilizador ad Para **restringir** o `/wp-admin/` a utilizadores reais em redes privadas (ou a IPs conhecidos), é preciso outra camada ou `real_ip` bem configurado: `set_real_ip_from` **apenas** para IPs dos proxies de confiança, `real_ip_header X-Forwarded-For`, e depois ajustar `allow` ao resultado — ou controlar acesso no **NPM** / Cloudflare / VPN. Ver `docs/deployment.md` (secção homónima). -**Directo ao LXC:** `http://10.10.50.140:8080/wp-admin/` — o `docker compose` publica `8080` em todas as interfaces por omissão; se não abre, verifica **firewall do CT**, **Proxmox**, e rota VPN até `10.10.50.0/24`. +**Directo ao LXC:** `http://10.10.50.204:8080/wp-admin/` — o `docker compose` publica `8080` em todas as interfaces por omissão; se não abre, verifica **firewall do CT**, **Proxmox**, e rota VPN até `10.10.50.0/24`. **Redirects do WordPress:** define `WORDPRESS_PUBLIC_URL` no `.env` para o URL público (HTTPS + host). Em produção atrás do Nginx do CT, se ainda estiver o default `http://localhost:8080`, o `WORDPRESS_CONFIG_EXTRA` infere o URL a partir de `Host` e `X-Forwarded-Proto` **desde que** o pedido traga pelo menos um cabeçalho típico de proxy (`X-Forwarded-Proto`, `X-Forwarded-For`, ou `X-Real-IP`). Garante que o Nginx preserva o `X-Forwarded-Proto` enviado pelo NPM (ficheiro `deploy/nginx/newsproject.bitreport.pt.conf`). Acesso directo ao contentor na porta `:8080` sem esses cabeçalhos continua a precisar de `WORDPRESS_PUBLIC_URL` correcto.