From 323250c12fb06a4a53fcaf21cb210f0203f4527f Mon Sep 17 00:00:00 2001 From: happybell80 Date: Mon, 3 Nov 2025 21:36:39 +0900 Subject: [PATCH] Add GooseFarm frontend proxy configuration - Add /goosefarm location block for Next.js frontend - Proxy to localhost:3001 - Support WebSocket upgrades for Next.js hot reload - Add to both HTTP (80) and HTTPS (443) server blocks --- server-nginx-default | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/server-nginx-default b/server-nginx-default index e8f022c..59d9133 100644 --- a/server-nginx-default +++ b/server-nginx-default @@ -51,6 +51,19 @@ server { try_files $uri $uri/ /index.html; } + # GooseFarm Frontend + location /goosefarm { + proxy_pass http://localhost:3001/; + proxy_http_version 1.1; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection 'upgrade'; + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Proto $scheme; + proxy_cache_bypass $http_upgrade; + } + # API endpoints -> route to gateway (host 8100 -> container 8000) location /api/ { proxy_pass http://localhost:8100; @@ -187,6 +200,19 @@ server { try_files $uri $uri/ /index.html; } + # GooseFarm Frontend + location /goosefarm { + proxy_pass http://localhost:3001/; + proxy_http_version 1.1; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection 'upgrade'; + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Proto $scheme; + proxy_cache_bypass $http_upgrade; + } + # API endpoints -> route to gateway (host 8100 -> container 8000) location /api/ { proxy_pass http://localhost:8100;