I have a setup similar to the one in this tutorial. How can I render JSON alone (no HTML) without having to specify the port number for the route specified in index.js
index.js
Rewriting the URL before passing it upstream within Nginx solved my problem:
location / { rewrite ^/u/(.*)$ /actors/$1 last; proxy_pass http://localhost:5000; }