Trim the trailing `/`, so the path is preserved.
@@ -59,12 +59,12 @@ http {
# By default, send requests to the UI server (which is another nginx
# server that simply serves from disk)
location / {
- proxy_pass http://localhost:4000/;
+ proxy_pass http://localhost:4000;
}
# Send requests that start with /api to the API server
location /api/ {
- proxy_pass http://localhost:3000/;
+ proxy_pass http://localhost:3000;
}
}
}
