From 5cb7037128a1871d5124c2f6c86035102d81be6c Mon Sep 17 00:00:00 2001 From: frakarr Date: Sun, 7 Dec 2025 16:15:46 +0100 Subject: [PATCH] Update nginx.conf --- nginx.conf | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/nginx.conf b/nginx.conf index 97684f0..59b9f8d 100644 --- a/nginx.conf +++ b/nginx.conf @@ -1 +1,20 @@ -���z \ No newline at end of file +server { + listen 80; + + # Serve React App (SPA) + location / { + root /usr/share/nginx/html; + index index.html index.htm; + try_files $uri $uri/ /index.html; + } + + # Proxy API requests to Backend Service + location /api { + proxy_pass http://backend:3001; + proxy_http_version 1.1; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection 'upgrade'; + proxy_set_header Host $host; + proxy_cache_bypass $http_upgrade; + } +}