...
- 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 according to your needs as shown in the below example ( remember you need to add a custom section into the configuration also to work properly:
rewrite /api/(.*) /$1 break;
to work properly. (e.g. /api or others depending on your need)
Example: