From 4589592b671a94fcae0f22727310ce9bb3da441d Mon Sep 17 00:00:00 2001 From: gahusb Date: Sat, 21 Mar 2026 23:19:34 +0900 Subject: [PATCH] =?UTF-8?q?nginx:=20music-lab=20proxy=5Fpass=20$request=5F?= =?UTF-8?q?uri=20=EB=A1=9C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 변수 기반 proxy_pass는 하위 경로(library, generate 등)를 자동 치환하지 않으므로 $request_uri로 전체 경로를 그대로 전달하도록 수정. Co-Authored-By: Claude Sonnet 4.6 --- nginx/default.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nginx/default.conf b/nginx/default.conf index 594a698..5ad8a86 100644 --- a/nginx/default.conf +++ b/nginx/default.conf @@ -28,7 +28,7 @@ server { autoindex off; } - # music API — 변수 기반 proxy_pass로 시작 시 DNS 조회 실패 방지 + # music API — 변수 기반 proxy_pass + $request_uri로 전체 경로 전달 location /api/music/ { resolver 127.0.0.11 valid=10s; set $music_backend music-lab:8000; @@ -39,7 +39,7 @@ server { proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; proxy_read_timeout 660s; - proxy_pass http://$music_backend/api/music/; + proxy_pass http://$music_backend$request_uri; } # travel thumbnails (generated by travel-proxy, stored in /data/thumbs)