Compare commits

...

2 Commits

Author SHA1 Message Date
Matt
9fcc458760 Add DNS servers to backend container to resolve external API calls
All checks were successful
Build and Push Docker Images / docker (push) Successful in 49s
Fixes ENOTFOUND api.wren.co error by adding Google DNS servers (8.8.8.8, 8.8.4.4)
to the backend container configuration.
2025-10-31 12:41:07 +01:00
Matt
0192c9b3e5 Fix nginx backend proxy port from 3001 to 3801
Backend container is exposed on host port 3801, not 3001.
This was preventing webhooks and API calls from reaching the backend.
2025-10-31 12:36:49 +01:00
2 changed files with 5 additions and 2 deletions

View File

@ -38,6 +38,9 @@ services:
- WREN_API_TOKEN=${WREN_API_TOKEN} - WREN_API_TOKEN=${WREN_API_TOKEN}
- WREN_DRY_RUN=${WREN_DRY_RUN:-false} - WREN_DRY_RUN=${WREN_DRY_RUN:-false}
- DATABASE_PATH=/app/data/orders.db - DATABASE_PATH=/app/data/orders.db
dns:
- 8.8.8.8
- 8.8.4.4
networks: networks:
- puffin-network - puffin-network
restart: unless-stopped restart: unless-stopped

View File

@ -88,7 +88,7 @@ server {
# === Backend API - Stripe Webhooks (specific route, no trailing slash) === # === Backend API - Stripe Webhooks (specific route, no trailing slash) ===
location = /api/webhooks/stripe { location = /api/webhooks/stripe {
proxy_pass http://127.0.0.1:3001/api/webhooks/stripe; proxy_pass http://127.0.0.1:3801/api/webhooks/stripe;
proxy_http_version 1.1; proxy_http_version 1.1;
proxy_set_header Host $host; proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Real-IP $remote_addr;
@ -106,7 +106,7 @@ server {
# === Backend API - All other API routes === # === Backend API - All other API routes ===
location /api/ { location /api/ {
proxy_pass http://127.0.0.1:3001/; proxy_pass http://127.0.0.1:3801/;
proxy_http_version 1.1; proxy_http_version 1.1;
proxy_set_header Host $host; proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Real-IP $remote_addr;