adventurelog: the backend router targets port 80 (nginx + X-Accel-Redirect), not gunicorn — photos came back empty (R-483)
This commit is contained in:
@@ -48,7 +48,11 @@ services:
|
||||
- "traefik.http.routers.adventurelog-backend.tls=true"
|
||||
- "traefik.http.routers.adventurelog-backend.tls.certresolver=letsencrypt"
|
||||
- "traefik.http.routers.adventurelog-backend.service=adventurelog-backend"
|
||||
- "traefik.http.services.adventurelog-backend.loadbalancer.server.port=8000"
|
||||
# Port 80, not 8000: the backend image runs nginx in front of gunicorn, and Django answers a
|
||||
# /media request with an X-Accel-Redirect that ONLY that nginx can serve — straight to gunicorn
|
||||
# (8000) the photo comes back as a 200 with an empty body (measured 2026-09-13). The k3s
|
||||
# service targets port 80 for the same reason.
|
||||
- "traefik.http.services.adventurelog-backend.loadbalancer.server.port=80"
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
|
||||
Reference in New Issue
Block a user