...
If you want to create custom locations for your endpoint, there is currently a bug that can be fixed with the following a workaround : (https://github.com/NginxProxyManager/nginx-proxy-manager/issues/3474#issuecomment-1902790528
Example:
...
):
- SSH into your NGINX proxy machine
- become sudo
Code Block sudo su
- Go to nginx folder
Code Block cd /opt/nginx-proxy/
- create an empty file called
_hsts_map.conf
Code Block touch _hsts_map.conf
- Update the docker-compose file with the new line (see the one in yellow in the screenshot below - /opt/nginx-proxy/_hsts_map.conf:/app/templates/_hsts_map.conf) and save
Code Block vi docker-compose.yml
- restart container (in newer versions of docker compose it might be docker compose)
Code Block docker-compose up -d
- Now login to your NGINX Proxy Manager UI and modify the hosts as shown in the below example ( you need to add a custom section into the configuration
rewrite /api/(.*) /$1 break;
to work properly.)
Example: