Help with advance Configuration NginX Proxy Manager Addon

Hello,

I’m looking for guidance on how to configure the Nginx Proxy Manager add-on to protect my services/hosts from external attacks.

I’m running NPM for three services: Home Assistant, Nextcloud, and Apache2, using a .duckdns.org domain with Let’s Encrypt certificates.

I’ve seen here:

that I can enable GeoIP protection by creating a custom configuration file /data/nginx/custom/root_top.conf to add snippets.

However, I think this is the path inside the add-on container, so I would need to find the corresponding path on my Home Assistant host that is mounted inside the add-on.

Looking at Portainer, it shows:
/mnt/data/supervisor/addons/data/a0d7b954_nginxproxymanager → /data

But I cannot find this path:
/mnt/data/supervisor/addons/data/

The only “data” path I see is in the root:
/data/

Should I create the following path instead?

/data/a0d7b954_nginxproxymanager/nginx/custom/root_top.conf

If someone knows how to better secure my hosts, any help is welcome. :grinning: