Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions core/tools/nginx/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,11 @@ http {
proxy_pass http://127.0.0.1:8000/;
}

location /autopilot-manager/ {
include cors.conf;
proxy_pass http://127.0.0.1:8000/;
}
Copy link

Choose a reason for hiding this comment

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

Proxy pass strips manager prefix

Medium Severity

location /autopilot-manager/ uses proxy_pass http://127.0.0.1:8000/;, which rewrites the upstream URI by stripping the /autopilot-manager/ prefix. If the core service routes are mounted under /autopilot-manager/, requests will unexpectedly hit / on the upstream and can return 404 or wrong content.

Fix in Cursor Fix in Web


location /bag/ {
include cors.conf;
proxy_pass http://127.0.0.1:9101/;
Expand Down