From 904d1ef397401c84a0c8ddb31d38a51ccea8f4ba Mon Sep 17 00:00:00 2001 From: jeremy Date: Fri, 22 May 2026 13:58:30 -0500 Subject: [PATCH] fix: onyx nginx - use rewrite to strip /api/ prefix with variable proxy_pass Co-Authored-By: Claude Sonnet 4.6 --- compose/bart/onyx/nginx.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compose/bart/onyx/nginx.conf b/compose/bart/onyx/nginx.conf index dfa931f..bd94350 100644 --- a/compose/bart/onyx/nginx.conf +++ b/compose/bart/onyx/nginx.conf @@ -11,14 +11,14 @@ server { location /api/ { set $api_upstream http://api_server:8080; - proxy_pass $api_upstream/; + rewrite ^/api/(.*)$ /$1 break; + proxy_pass $api_upstream; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; proxy_read_timeout 300s; proxy_connect_timeout 75s; - # SSE support proxy_buffering off; proxy_cache off; }