fix: restore nginx.conf, bake into nginx image for /api/ proxy

This commit is contained in:
Ada
2026-04-06 10:07:50 -04:00
parent c9e2c91a6b
commit 1153ad4989
2 changed files with 20 additions and 0 deletions

19
deploy/nginx.conf Normal file
View File

@@ -0,0 +1,19 @@
server {
listen 80;
server_name _;
root /usr/share/nginx/html;
index index.html;
location /api/ {
proxy_pass http://backend:3000/api/;
proxy_http_version 1.1;
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 / {
try_files $uri $uri/ /index.html;
}
}