Commit Graph
19 Commits
Author SHA1 Message Date
José Alves cba153cfc1 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
2026-06-01 13:12:36 +00:00
Tiago Neves 86261a1a54 fix(nginx): add wp_andebol_content volume to nginx-andebol (BIT-23734)
Tests / writer-pipeline tests (push) Successful in 50s
Tests / bridge tests (push) Successful in 1m3s
Tests / frontend lib tests (push) Successful in 1m3s
Tests / bridge tests (pull_request) Successful in 1m11s
Tests / writer-pipeline tests (pull_request) Successful in 1m14s
Tests / frontend lib tests (pull_request) Successful in 1m9s
nginx-andebol was missing the wp_andebol_content volume mount, causing
uploaded files to return 404 even though they were written correctly to
the wp_andebol_content Docker volume by the WordPress PHP-FPM container.

Paperclip-Task: BIT-23734
Paperclip-Agent: devops
2026-05-25 23:25:52 +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
738f847d36 feat: theme system + institutional theme + andebol.net domain config
Add domain-aware theme system (BIT-494, BIT-495, BIT-496, BIT-497):

- Theme architecture: move shared components into src/themes/sports/,
  create src/themes/institutional/ with handball-oriented design
- Domain config: andebol.net.json (institutional theme, pt-PT locale,
  handball categories, WP endpoint port 8081)
- theme.ts library: resolves theme components per domain config
- Updated layouts/pages to use theme-aware component loading
- Updated docs: domains.md, frontend.md with theme system docs
- Smoke test script for andebol.net
- WordPress .env.example with andebol env vars

Note: this work was completed in BIT-494/495/496/497 but was
never committed — committing now to unblock andebol.net deploy.

Co-Authored-By: Paperclip <[email protected]>
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
2026-03-27 08:38:41 +00:00
Artur MoreiraandPaperclip 49aef86119 feat(wordpress): add wordpress-andebol service on port 8081 for andebol.net
Adds a second WordPress instance (wordpress-andebol) with its own MariaDB
(db-andebol) on port 8081 to support the andebol.net domain.

New env vars required in .env:
  ANDEBOL_MYSQL_ROOT_PASSWORD
  ANDEBOL_MYSQL_PASSWORD
  ANDEBOL_WORDPRESS_PUBLIC_URL (optional, defaults to http://localhost:8081)

Closes BIT-507 (partial — WP deploy step).

Co-Authored-By: Paperclip <[email protected]>
2026-03-25 00:17:23 +00:00
Artur Moreira 787983bd49 fix(wordpress): escape $ in WORDPRESS_CONFIG_EXTRA for Docker Compose
Compose was stripping PHP $_ variables, breaking wp-config and causing
HTTP 500. Use $$ prefix so literals reach the container (BIT-471).

Made-with: Cursor
2026-03-24 22:23:39 +00:00
Artur Moreira c835661400 feat(wordpress): optional WORDPRESS_DEBUG for LXC triage (BIT-471)
Expose WP_DEBUG, WP_DEBUG_LOG/DISPLAY, E_ALL + display_errors when
WORDPRESS_DEBUG=1 in wordpress/.env. Default off. For short-lived
diagnosis of opaque HTTP 500; disable after fix.

Made-with: Cursor
2026-03-24 22:16:16 +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 1141e6d840 feat(wordpress): script to fix siteurl/home in wp_options on CT
Adds scripts/fix-wp-siteurl-home.sh for BIT-471: updates siteurl and home
via mysqli from the wordpress container (same path as runtime). Default URL
https://newsproject.bitreport.pt; override with WP_PUBLIC_URL. Run after DB
is healthy (verify-db-connection.sh).

Made-with: Cursor
2026-03-24 19:00:59 +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 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 c52f9184fe docs(wordpress): como aceder ao wp-admin (LXC e túnel SSH)
Co-Authored-By: Paperclip <[email protected]>
Made-with: Cursor
2026-03-23 20:04:10 +00:00
Artur MoreiraandPaperclip 3cda2063dd feat: headless WordPress Docker Compose setup (BIT-351)
- docker-compose.yml: WordPress 6/PHP8.3 + MariaDB 11, port 8080
- setup.sh: WP-CLI install, headless config, 5 categories, 10 sample articles
- php.ini: upload/memory limits for media-heavy news content
- .env.example: credential placeholders (values in vault)
- README.md: quick-start and REST API reference

Tested on CT 222 (news-project-test, 10.10.50.140):
- REST API /wp-json/wp/v2/ → 200 OK
- 5 categories: Football, Basketball, F1, Tennis, MMA
- 11 posts confirmed via REST API

Co-Authored-By: Paperclip <[email protected]>
Made-with: Cursor
2026-03-23 15:45:36 +00:00
Tiago NevesandPaperclip f7274c9c4e chore: scaffold initial project structure
Creates the base directory layout for the news-platform:
frontend/, bridge/, wordpress/, config/domains/, docs/, deploy/.

Ref: BIT-346 — Create Gitea repo + scaffold project structure

Co-Authored-By: Paperclip <[email protected]>
Made-with: Cursor
2026-03-23 14:06:29 +00:00