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
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
- 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
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]>
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]>
Compose was stripping PHP $_ variables, breaking wp-config and causing
HTTP 500. Use $$ prefix so literals reach the container (BIT-471).
Made-with: Cursor
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
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
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
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
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
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
- 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
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