Cut off outside URL access with switch / Logout all users too

Hi all,

I just configured outside access via DuckDNS and https certification via NGINX.

However, I want to make a toggle switch inside HA that turns off outside URL access. So when device is lost, I can flip a switch and all outside access is denied instantly.

Same goes for a button that force-logs out all users, so I can reset passwords and push the button afterwards.

Anybody got an idea how to do this?

Any hint would be much appreciated. Thanks!

One simple approach might be to stop the NGINX add-on (assuming that’s what you’re using) with a service call to hassio.addon_stop and a slug of addon_a0d7b954_nginxproxymanager. Of course this won’t work if you’re using SSL on your LAN. Seems like a sledgehammer approach though.

Yeah, but for an emergency this is a feasable option, thanks!