Try changing the proxy_pass
directive in the /model
location to:
location /model {
proxy_pass http://127.0.0.1:8080/model;
}
This will ensured that the /model
path is correctly forwarded to the backend. Also, check that the backend service on 8080
correctly handles the /model
path.