配置Nginx转发

情况一:

location /testauth/ {

proxy_pass http://auth.auth.svc:3002/api/v1/agnt-mst/;

}

curl http://localhost/testauth/?salt=123



情况二:

location /api/v1/agnt-mst/ {

proxy_pass http://auth.auth.svc:3002;

}

curl http://localhost/api/v1/agnt-mst/?salt=123


情况三:

location /api/v1/agnt-mst {

proxy_pass http://auth.auth.svc:3002;

}

curl http://localhost/api/v1/agnt-mst?salt=123