From 3bc23165a32af997a1cf402b0e2babd77651c5d7 Mon Sep 17 00:00:00 2001 From: MaKarin Date: Sat, 4 Apr 2026 09:21:32 +0300 Subject: [PATCH] update nginx.conf --- client/nginx/default.conf | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/client/nginx/default.conf b/client/nginx/default.conf index c664296..8e10fab 100644 --- a/client/nginx/default.conf +++ b/client/nginx/default.conf @@ -4,6 +4,7 @@ server { root /usr/share/nginx/html; index index.html; + resolver 127.0.0.11 ipv6=off; location = /healthz { access_log off; @@ -12,7 +13,9 @@ server { } 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_set_header Host $host; proxy_set_header X-Real-IP $remote_addr;