502: canteen.ourpad.casa down — NPMPlus HTTPS→HTTP backend mismatch #23

Closed
opened 2026-05-21 11:31:16 +00:00 by shawn · 0 comments
Owner

Symptom

canteen.ourpad.casa returned Cloudflare 502 Bad Gateway.

Root Cause

NPMPlus proxy host #13 had forward_scheme: https pointing to backend 192.168.0.127:8901, but the canteen backend (FastAPI/uvicorn) only serves plain HTTP.

Fix

  1. Changed forward_scheme from https to http in /opt/npmplus/nginx/proxy_host/13.conf
  2. Updated proxy_pass https to proxy_pass http
  3. Reloaded nginx: docker exec npmplus nginx -s reload
  4. Updated NPMPlus SQLite DB

Verification

curl -H Host: canteen.ourpad.casa https://192.168.0.115/ -k -> 200
curl https://canteen.ourpad.casa/ -> 200

## Symptom canteen.ourpad.casa returned Cloudflare 502 Bad Gateway. ## Root Cause NPMPlus proxy host #13 had forward_scheme: https pointing to backend 192.168.0.127:8901, but the canteen backend (FastAPI/uvicorn) only serves plain HTTP. ## Fix 1. Changed forward_scheme from https to http in /opt/npmplus/nginx/proxy_host/13.conf 2. Updated proxy_pass https to proxy_pass http 3. Reloaded nginx: docker exec npmplus nginx -s reload 4. Updated NPMPlus SQLite DB ## Verification curl -H Host: canteen.ourpad.casa https://192.168.0.115/ -k -> 200 curl https://canteen.ourpad.casa/ -> 200
shawn closed this issue 2026-05-21 11:31:24 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: shawn/canteen-asset-tracker#23