I have a Custom Location set in Nginx Proxy Manager, but the problem is the URL is wrong when traffic is passed to it. I discovered here that the fix is a simple rewrite rule to change the end URL to match what the endpoint expects. Example:
rewrite ^/$ /admin/$1 break;
You add this rewrite in by hitting the gear to the right of the custom location.