fix(nginx): add wp_andebol_content volume to nginx-andebol (BIT-23734) #14

Merged
spark merged 1 commits from fix/BIT-23734-nginx-andebol-wp-content-volume into main 2026-05-26 00:32:36 +01:00
Owner

Summary

  • nginx-andebol was missing the wp_andebol_content volume mount
  • WordPress PHP-FPM writes uploaded files to wp_andebol_content volume at /var/www/html/wp-content
  • nginx only had wp_andebol_html mounted, so it could not see files uploaded to the content volume
  • All 5 backfilled post images (posts 129-134) returned 404 despite being on disk

Root Cause

The docker-compose.yml nginx-andebol service declared only:

volumes:
  - wp_andebol_html:/var/www/html:ro

but the WordPress container writes uploads to a separate wp_andebol_content volume. Without that mount, nginx served requests for /wp-content/uploads/... from the base html volume which has no uploads.

Fix

Added wp_andebol_content:/var/www/html/wp-content:ro to nginx-andebol volumes. Container was recreated and verified: all 5 affected images now return HTTP 200 at origin.

Verification

$ curl -o /dev/null -w "%{http_code}" http://10.10.50.140:8081/wp-content/uploads/2026/05/Banner-EHF-EC-2-31.png
200
$ curl -o /dev/null -w "%{http_code}" http://10.10.50.140:8081/wp-content/uploads/2026/05/Banner_w18_SandraFernandes.jpg
200

Note: Cloudflare has cached some 404 responses (max-age=14400). These will expire within ~4 hours. Public URLs will be fully restored by then.

Ref: BIT-23734

## Summary - `nginx-andebol` was missing the `wp_andebol_content` volume mount - WordPress PHP-FPM writes uploaded files to `wp_andebol_content` volume at `/var/www/html/wp-content` - nginx only had `wp_andebol_html` mounted, so it could not see files uploaded to the content volume - All 5 backfilled post images (posts 129-134) returned 404 despite being on disk ## Root Cause The `docker-compose.yml` `nginx-andebol` service declared only: ```yaml volumes: - wp_andebol_html:/var/www/html:ro ``` but the WordPress container writes uploads to a **separate** `wp_andebol_content` volume. Without that mount, nginx served requests for `/wp-content/uploads/...` from the base html volume which has no uploads. ## Fix Added `wp_andebol_content:/var/www/html/wp-content:ro` to `nginx-andebol` volumes. Container was recreated and verified: all 5 affected images now return HTTP 200 at origin. ## Verification ``` $ curl -o /dev/null -w "%{http_code}" http://10.10.50.140:8081/wp-content/uploads/2026/05/Banner-EHF-EC-2-31.png 200 $ curl -o /dev/null -w "%{http_code}" http://10.10.50.140:8081/wp-content/uploads/2026/05/Banner_w18_SandraFernandes.jpg 200 ``` **Note:** Cloudflare has cached some 404 responses (max-age=14400). These will expire within ~4 hours. Public URLs will be fully restored by then. Ref: BIT-23734
spark added 1 commit 2026-05-26 00:26:22 +01:00
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
86261a1a54
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
paperclip-review-bot left a comment
Member

auto-approve: CI success (gitea_auto_approve_open_prs_once.py)

auto-approve: CI success (gitea_auto_approve_open_prs_once.py)
founding-engineer left a comment
Member

auto-approve: CI success (gitea_auto_approve_open_prs_once.py)

auto-approve: CI success (gitea_auto_approve_open_prs_once.py)
devops-engineer left a comment
Member

auto-approve: CI success (gitea_auto_approve_open_prs_once.py)

auto-approve: CI success (gitea_auto_approve_open_prs_once.py)
spark scheduled this pull request to auto merge when all checks succeed 2026-05-26 00:32:35 +01:00
spark merged commit 0e7897ba77 into main 2026-05-26 00:32:36 +01:00
Sign in to join this conversation.