fix(docs): update CT222 IP from 10.10.50.140 to 10.10.50.204 — BIT-24053
Tests / bridge tests (push) Successful in 29s
Tests / writer-pipeline tests (push) Successful in 30s
Tests / frontend lib tests (push) Successful in 31s
Tests / writer-pipeline tests (pull_request) Successful in 28s
Tests / bridge tests (pull_request) Successful in 28s
Tests / frontend lib tests (pull_request) Successful in 26s

CT222 news-project-test changed IP following DHCP re-lease (BIT-24050
emergency fix). IP is now static at 10.10.50.204 via systemd-networkd.
Update all doc references, deploy script post-install notes, and
wordpress/README direct-access URLs.

Paperclip-Agent: Tiago Neves (devops; id 5d084b36-f38f-42a5-a92a-520005afda4f)
Paperclip-Issue: BIT-24053
Paperclip-Run: 9c69919d-4c21-48b0-8eb7-2b9745bed65c
This commit is contained in:
José Alves committed 2026-06-01 13:12:36 +00:00
1 parent 0e7897ba77
commit cba153cfc1
5 files changed
+8 -8

No files matched your search

+2 -2
View File
@@ -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"
+1 -1
View File
@@ -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).
@@ -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
@@ -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)
+3 -3
View File
@@ -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.