Control Nginx Proxy Manager from HA?

So, I’m curious if anyone has ever done something like this before or not, as I think it would be sort of cool to be able to control Nginx Proxy Manager from within HA.

Example here. I already have Nginx Proxy Manager setup and working just fine on a Proxmox Container, combined with a dyndns and domain name. That all works very well, and I can point to things like mysub.mymain.xyz just fine.

And while I do not expose the nginx itself to the internet, I can via wireguard, vpn into my home, then open then nginx sever to enable/disable a proxy host if needed.

But I was thinking maybe, what if you could enable/disable a proxy host from directly with HA instead of having to login into Nginx Proxy Manager?

Can you connect an existing Nginx Proxy Manager to HA and then control it from within HA?

@ptmuldoon You would need to use the API, which I didn’t know existed until reading your question. It isn’t documented on their site but there is a swagger file with the details.

It’s certainly doable to get the list of hosts and be able to Enable and Disable them which I’m guessing maybe what you wanted.

https://github.com/NginxProxyManager/nginx-proxy-manager/blob/953faeac158709fb12901d7092a389d7eb353674/backend/schema/swagger.json