Public Access
1
0

fix: proxy web /api routes to api container

This commit is contained in:
pguerrerox
2026-05-26 23:44:23 +00:00
parent a6df4cb3cb
commit 458a75a740
3 changed files with 22 additions and 1 deletions
+20
View File
@@ -0,0 +1,20 @@
server {
listen 80;
server_name _;
root /usr/share/nginx/html;
index index.html;
location /api/ {
proxy_pass http://api:4000;
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;
proxy_set_header X-Forwarded-Proto $scheme;
}
location / {
try_files $uri /index.html;
}
}