Skip to content

fix: route SDK v1 requests through nginx#569

Open
AlexLiu190625 wants to merge 1 commit into
xorbitsai:mainfrom
AlexLiu190625:fix/sdk-v1-nginx-routing
Open

fix: route SDK v1 requests through nginx#569
AlexLiu190625 wants to merge 1 commit into
xorbitsai:mainfrom
AlexLiu190625:fix/sdk-v1-nginx-routing

Conversation

@AlexLiu190625
Copy link
Copy Markdown
Collaborator

@AlexLiu190625 AlexLiu190625 commented May 29, 2026

Summary

  • Route /v1/ SDK API requests through the Docker nginx frontend to the backend service.
  • Keep standard proxy metadata and timeout behavior for REST SDK requests.

Why

The backend owns SDK v1 endpoints such as /v1/me and /v1/chat/tasks*. Without an explicit nginx location /v1/, those requests fall through to the frontend catch-all route and return frontend 404 HTML instead of backend API responses.

Validation

  • git diff --check
  • Verified docker/nginx.conf now has /v1/ before the frontend / catch-all route.

@XprobeBot XprobeBot added the bug Something isn't working label May 29, 2026
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request adds a new '/v1/' location block in 'docker/nginx.conf' to proxy SDK API requests to the backend. The reviewer pointed out that this block unnecessarily includes WebSocket-specific headers (such as 'Upgrade' and 'Connection "upgrade"') for standard HTTP REST API endpoints, which can degrade performance and lead to socket exhaustion. A code suggestion was provided to remove these headers.

Comment thread docker/nginx.conf
@AlexLiu190625 AlexLiu190625 force-pushed the fix/sdk-v1-nginx-routing branch from d0ca7c5 to bac4a0d Compare May 29, 2026 15:41
@AlexLiu190625 AlexLiu190625 marked this pull request as ready for review May 29, 2026 15:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants