update nginx.conf

This commit is contained in:
MaKarin
2026-04-04 09:21:32 +03:00
parent df2797fe7d
commit 3bc23165a3

View File

@@ -4,6 +4,7 @@ server {
root /usr/share/nginx/html; root /usr/share/nginx/html;
index index.html; index index.html;
resolver 127.0.0.11 ipv6=off;
location = /healthz { location = /healthz {
access_log off; access_log off;
@@ -12,7 +13,9 @@ server {
} }
location /api/ { location /api/ {
proxy_pass http://server:3000/; set $backend http://server:3000;
rewrite ^/api/?(.*)$ /$1 break;
proxy_pass $backend;
proxy_http_version 1.1; proxy_http_version 1.1;
proxy_set_header Host $host; proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Real-IP $remote_addr;