From 293115e0e17debe02c572d3db8a7f4ad11db12b0 Mon Sep 17 00:00:00 2001 From: Denozordec Date: Wed, 20 May 2026 16:05:54 +0700 Subject: [PATCH] fix(nginx): update proxy_pass configuration to use full request URI - Modified the NGINX configuration to pass the full request URI in the proxy_pass directive, ensuring proper handling of requests. - Added a comment to clarify the limitation of using a variable in proxy_pass for URI replacement. --- deploy/docker/evobgp-web/nginx.conf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/deploy/docker/evobgp-web/nginx.conf b/deploy/docker/evobgp-web/nginx.conf index 1245573..4f88710 100644 --- a/deploy/docker/evobgp-web/nginx.conf +++ b/deploy/docker/evobgp-web/nginx.conf @@ -11,7 +11,8 @@ server { set $evobgp_upstream evobgp-api; location /v1/ { - proxy_pass http://$evobgp_upstream:8080/v1/; + # С переменной в proxy_pass нельзя полагаться на замену URI — передаём $request_uri целиком. + proxy_pass http://$evobgp_upstream:8080$request_uri; proxy_http_version 1.1; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr;