Fix MTR API path: nginx rewrites diag_path prefix, backend accepts full paths

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Ivan Razin
2026-06-24 11:20:04 +03:00
co-authored by Claude Sonnet 4.6
parent 174fee0078
commit eeae08de1a
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -462,7 +462,7 @@ server {
location ^~ ${diag_path}api/mtr {
limit_req zone=diag_api burst=2 nodelay;
limit_conn per_ip 2;
proxy_pass http://127.0.0.1:${mtr_backend_port};
proxy_pass http://127.0.0.1:${mtr_backend_port}/api/mtr;
proxy_http_version 1.1;
proxy_set_header X-Real-IP \$remote_addr;
proxy_set_header X-Forwarded-For \$proxy_add_x_forwarded_for;