Add nginx reverse proxy for /api and /health to backend server #5

Merged
josh merged 1 commits from feature/auth-invites into main 2026-04-27 20:00:16 -04:00
+11
View File
@@ -3,6 +3,17 @@ server {
root /usr/share/nginx/html; root /usr/share/nginx/html;
index index.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 / { location / {
try_files $uri $uri/ /index.html; try_files $uri $uri/ /index.html;
} }