fix(nginx): xvaluelab admin/web proxy_pass to upstream root (basePath)
Some checks failed
Deploy Nginx Config to Ubuntu Server / deploy (push) Has been cancelled
Some checks failed
Deploy Nginx Config to Ubuntu Server / deploy (push) Has been cancelled
Remove URI suffix from proxy_pass so Next.js receives full /xvaluelab paths. Keeps location ^~ /xvaluelab/api/ unchanged. Made-with: Cursor
This commit is contained in:
parent
e16a9cbd8e
commit
b09b473ade
@ -249,16 +249,16 @@ server {
|
||||
proxy_read_timeout 120s;
|
||||
}
|
||||
|
||||
location ^~ /xvaluelab/admin/ {
|
||||
proxy_pass http://192.168.0.106:3030/xvaluelab/admin/;
|
||||
location ^~ /xvaluelab/admin {
|
||||
proxy_pass http://192.168.0.106:3030;
|
||||
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;
|
||||
}
|
||||
|
||||
location ^~ /xvaluelab/ {
|
||||
proxy_pass http://192.168.0.106:3040/xvaluelab/;
|
||||
location ^~ /xvaluelab {
|
||||
proxy_pass http://192.168.0.106:3040;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user