Nginx config for Restful API behind proxy
If you want to point /api/path/
to the root of your redirect destination, you need to use:
proxy_redirect http://localhost:1337 https://domain.tld/api/path/
If you want to point /api/path/
to the root of your redirect destination, you need to use:
proxy_redirect http://localhost:1337 https://domain.tld/api/path/