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
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
- 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