@Oleksii_Zelivianskyi wrote:
I think a figured it out.
To allow access only to http://ip_address:8123/api/
- I added custom location / with forward hostname and port homeassistant 8123 and additional options:
deny all; return 404;
- I added custom loation /api/ with hostname and port homeassistant/api/ 8123
Seems to work.