Commit Graph
21 Commits
Author SHA1 Message Date
José Alves ea9a7ad5d9 docs(deploy): add .env runtime preservation rules (BIT-25005)
Tests / writer-pipeline tests (push) Successful in 3m9s
Tests / bridge tests (push) Successful in 3m9s
Tests / frontend lib tests (push) Successful in 3m26s
Tests / writer-pipeline tests (pull_request) Successful in 3m16s
Tests / bridge tests (pull_request) Successful in 1m48s
Tests / frontend lib tests (pull_request) Successful in 1m40s
Propagate DEPLOY_STANDARD.md §3.1 to this repo: prohibit cp .env.example .env
over existing production .env, require rsync excludes, and mandate
PRODUCTION_ACCESS_SYNC_LOG entries for credential changes.

Paperclip-Task: BIT-25008
2026-06-11 15:37:19 +00:00
Artur MoreiraandCursor 7c0a515368 feat(writer-pipeline): newsproject.bitreport.pt writer cycle and WP env split
Tests / writer-pipeline tests (push) Failing after 5s
Tests / bridge tests (push) Failing after 6s
Tests / frontend lib tests (push) Successful in 14s
Tests / writer-pipeline tests (pull_request) Successful in 11s
Tests / bridge tests (pull_request) Successful in 13s
Tests / frontend lib tests (pull_request) Successful in 14s
Add site-scoped WP credentials (NEWSPROJECT_* vs ANDEBOL_*), RSS sources
config, systemd oneshot/timer offset from andebol, env template, and
deployment docs so BIT-22288 covers both stacks.

Co-authored-by: Cursor <[email protected]>
2026-05-14 14:40:09 +00:00
Artur MoreiraandCursor 9b6029f369 docs: fix Cloudflare cache verification (GET vs HEAD) after BIT-21847
Document GET-based curl checks, Free-plan contains paths, and Edge TTL
note aligned with cf-cache-rules-apply.sh. Add baseline operator footnote
and independent HIT smoke.

Co-authored-by: Cursor <[email protected]>
2026-05-12 22:42:29 +00:00
Artur MoreiraandCursor 95b3c1b703 docs(news-platform): tighten Cloudflare HTML cache runbook for BIT-21847
Add /api/ exclusion and per-zone filter expressions in deployment.md.
Record continuation verification in PERFORMANCE_BASELINE (still DYNAMIC).
Execution moves to Paperclip child BIT-21912 for DevOps dashboard apply.

Co-authored-by: Cursor <[email protected]>
2026-05-12 11:00:07 +00:00
Artur Moreira 6282e73926 feat(BIT-2079): add systemd service+timer for andebol.net writer pipeline
Tests / writer-pipeline tests (push) Successful in 18s
Tests / bridge tests (push) Successful in 17s
Tests / frontend lib tests (push) Successful in 17s
Daily oneshot cycle at 06:00 UTC via news-writer-andebol.timer;
env template covers ANDEBOL_WP_* credentials; deployment.md updated
with install steps, log tailing, and manual test run instructions.

Paperclip-Issue: BIT-2079
2026-05-11 21:51:33 +00:00
Artur Moreira b629f6c6aa feat(frontend): PT shell i18n, html lang pt-PT, i18n docs (BIT-739)
- Set document language to full BCP-47 from domain config (e.g. pt-PT).
- Extend ui-i18n with service errors, ad labels, ARIA landmarks, category
  meta fallback, and localized search upstream message.
- Localize ArticleHeader (dates, reading time, breadcrumb); omit duplicate
  breadcrumb when institutional chrome already provides one.

Docs: add docs/i18n.md strategy sketch; domains.md and deployment.md
(BRIDGE_INTERNAL_URL) cross-links.

Paperclip-Agent: ac1be104-8818-496a-80c5-fbc590a87855
Paperclip-Issue: 182b154e-5ad4-4965-9f30-50a66ef51ce0
Paperclip-Run: 6ce7746f-bfb6-4486-a1f5-aed26fe8e149
Made-with: Cursor
2026-04-02 20:06:48 +00:00
Artur MoreiraandPaperclip a77c293d0e feat(wordpress): nginx + PHP-FPM stacks; retire Apache images (BIT-578)
- Use wordpress:6-php8.3-fpm with nginx:alpine sidecars; keep host ports 8080/8081
- Add shared wp_html / wp_andebol_html volumes so nginx can serve the same docroot as FPM
- Nginx: try_files permalinks, proxy headers, HTTP_AUTHORIZATION for App Passwords
- Update deploy scripts to force-recreate nginx with wordpress when public URL is fixed
- Refresh README and deployment docs

Co-Authored-By: Paperclip <[email protected]>
Made-with: Cursor
2026-03-28 01:15:51 +00:00
Artur MoreiraandPaperclip aff73455d0 feat(andebol): public WP login surface, auth nav, /entrar and /registar
- Nginx: proxy wp-login.php, wp-includes, wp-admin css/js/images, and
  wp-content/languages without RFC1918 allow (works with real_ip); keep
  rest of wp-admin, wp-content, wp-json restricted.
- Domain config: auth_links on andebol.net; optional DomainConfig field.
- Astro: Portuguese/English auth labels, header/footer links, redirects.
- Bridge: omit internal detail from 503 JSON (avoid leaking upstream msgs).
- Docs: deployment + domains schema for auth and membership.

Co-Authored-By: Paperclip <[email protected]>
Made-with: Cursor
2026-03-27 10:57:57 +00:00
Artur Moreira e15e88ef6c fix(nginx): default_server for all NPM hostnames + WP port map
Use default_server and server_name _ so domains like andebol.net reach Astro
instead of the Debian nginx welcome page. Install map Host→WordPress port
(8080 default, andebol.net→8081). deploy.sh and webhook-deploy install
conf.d snippet and remove sites-enabled/default.

docs/deployment.md: document multi-domain NPM workflow.

Refs: BIT-345
2026-03-25 12:34:18 +00:00
Artur Moreira 67f655820a fix(wordpress): broaden proxy detection for WP_HOME inference (BIT-470)
- Treat X-Forwarded-Proto or X-Real-IP as sufficient proxy hints alongside X-Forwarded-For
- Normalize WORDPRESS_PUBLIC_URL in ensure-public-url script (trailing slash, any localhost:8080 substring)
- Update deployment.md and wordpress README

Made-with: Cursor
2026-03-24 19:47:35 +00:00
Artur Moreira 5e14e2df47 fix(deploy): auto-set WordPress public URL and sync wp_options on LXC
Add wordpress-ensure-public-url.sh (exit 2 when .env updated) and
wordpress-sync-options-url.sh to align siteurl/home with HTTPS. Wire
into deploy.sh and webhook-deploy.sh for /opt/news-platform only so
the board does not need manual .env or SQL for BIT-470/BIT-471.

Made-with: Cursor
2026-03-24 19:02:10 +00:00
Artur Moreira eee991400e fix(wordpress): wp-admin redirect behind NPM (BIT-470)
Preserve X-Forwarded-Proto from the edge proxy in CT nginx so WordPress
sees HTTPS. When WORDPRESS_PUBLIC_URL still defaults to localhost:8080,
derive WP_HOME/WP_SITEURL from Host and forwarded headers for proxied
requests (X-Forwarded-For present). Document behaviour in deployment and
wordpress README.

Made-with: Cursor
2026-03-24 18:53:25 +00:00
Artur Moreira ab0ea3c785 fix(wordpress): public URL for wp-admin behind reverse proxy
Set WP_HOME/WP_SITEURL from WORDPRESS_PUBLIC_URL so login does not redirect
to http://localhost:8080 when using https://newsproject.bitreport.pt.
Trust X-Forwarded-Proto for HTTPS behind NPM. Document in .env.example and
docs/deployment.md checklist.

Refs: BIT-345
Made-with: Cursor
2026-03-24 03:41:35 +00:00
Artur Moreira 7095765669 feat(deploy): LXC bootstrap, smoke script, /health in nginx, deployment doc (BIT-426)
- Add deploy/lxc/setup.sh for Ubuntu 24 CT (nginx, redis, docker, node 22, pm2)
- Add deploy/scripts/smoke-newsproject.sh for /, /health, wp-json checks
- Proxy GET /health to Fastify in newsproject.bitreport.pt nginx config
- Update docs/deployment.md: remove stub, NPM hostname, bootstrap order, canonical nginx path

Made-with: Cursor
2026-03-24 02:03:40 +00:00
Artur MoreiraandPaperclip 642dec80dc docs(nginx): clarify wp-admin reachability behind NPM
Align README and deployment.md with reality: allow/deny use $remote_addr
on the CT, so a private-IP reverse proxy makes /wp-admin/ reachable from
the public Internet. Add nginx header comments and optional real_ip notes.

Co-Authored-By: Paperclip <[email protected]>
Made-with: Cursor
2026-03-23 23:13:35 +00:00
Artur MoreiraandPaperclip af0e42c005 devops(wordpress): add verify-db-connection script for MariaDB stack
Add scripts/verify-db-connection.sh to chain compose ps, db healthcheck,
and mysqli from the wordpress container. Document in README runbook,
deployment.md, and .env.example (password vs db_data drift).

Co-Authored-By: Paperclip <[email protected]>
Made-with: Cursor
2026-03-23 23:07:39 +00:00
Artur MoreiraandPaperclip 523f66a15e docs(ops): align WP deploy docs and harden MariaDB healthcheck (BIT-389)
- wordpress/docker-compose.yml: longer db start_period and retries for slow init
- wordpress/README.md: db healthcheck exec step and restart-loop note
- docs/deployment.md: replace stale MySQL 8 snippet with pointer to compose

Co-Authored-By: Paperclip <[email protected]>
Made-with: Cursor
2026-03-23 21:36:33 +00:00
Artur MoreiraandPaperclip a21a27b55b docs(wordpress): troubleshooting DB connection on wp-admin (500)
Diagnose public /wp-admin/ errors that surface as WordPress database
connection failures: verify Docker db health, logs, and .env vs volume.

Co-Authored-By: Paperclip <[email protected]>
Made-with: Cursor
2026-03-23 21:17:52 +00:00
Artur MoreiraandPaperclip 7e61271bc5 feat(nginx): proxy wp-admin e wp-json com allow redes privadas
Co-Authored-By: Paperclip <[email protected]>
Made-with: Cursor
2026-03-23 20:07:55 +00:00
Artur MoreiraandPaperclip a8b71762d9 fix(news-platform): SSR domain routing, resilient homepage, Gitea deploy hook
- Forward X-Site-Host from Astro to the bridge so loopback calls use the public domain JSON
- Normalize newsproject.bitreport.pt.json (categories slug/label, wp on 127.0.0.1:8080)
- Degrade homepage/trending when WordPress is down instead of 500
- Extend webhook-deploy.sh for config/ and wordpress/ changes; add deploy-hook-server + systemd unit
- Document automatic Gitea webhook flow in docs/deployment.md; align DOMAINS_CONFIG_PATH env

Co-Authored-By: Paperclip <[email protected]>
Made-with: Cursor
2026-03-23 19:47:19 +00:00
David SantosandPaperclip 7b7830263b docs: architecture document and project scaffold for news-platform
- docs/architecture.md: full architecture with Astro 5 SSR vs Next.js/Nuxt
  justification, component diagram, data flow, multi-domain routing, SEO
  strategy, performance targets, and caching strategy
- docs/frontend.md, bridge.md, domains.md, seo.md, deployment.md: stubs
  with implementation detail for each layer
- config/domains/newsproject.bitreport.pt.json: first domain config
- project skeleton: frontend/, bridge/, wordpress/, config/, deploy/

Covers BIT-348 deliverables. Push pending Gitea repo creation.

Co-Authored-By: Paperclip <[email protected]>
2026-03-23 14:11:39 +00:00