From 56e82877204d621ad554b5d8a47a02edd7fbe0ac Mon Sep 17 00:00:00 2001 From: 0xWheatyz Date: Sun, 15 Mar 2026 02:51:28 -0400 Subject: [PATCH] fix(nginx): strip /api/ prefix when proxying to backend MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add trailing slash to proxy_pass directive so nginx strips the /api/ prefix before forwarding requests to the API container. This fixes routes like /api/docs being passed as /api/docs instead of /docs. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- frontend/nginx.conf.template | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/nginx.conf.template b/frontend/nginx.conf.template index b36c4df..c24b137 100644 --- a/frontend/nginx.conf.template +++ b/frontend/nginx.conf.template @@ -15,7 +15,7 @@ server { # Proxy API requests to backend location /api/ { - proxy_pass ${API_URL}; + proxy_pass ${API_URL}/; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection 'upgrade';