diff --git a/apps/web/nginx.conf b/apps/web/nginx.conf index e864e54..f49693a 100644 --- a/apps/web/nginx.conf +++ b/apps/web/nginx.conf @@ -3,6 +3,17 @@ server { root /usr/share/nginx/html; index index.html; + location /api/ { + proxy_pass http://server:3001; + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + } + + location /health { + proxy_pass http://server:3001; + } + location / { try_files $uri $uri/ /index.html; }