[solved] Reverse proxy issue - can't get it to work

Hi All

Here’s the setup of my network:

  1. Main Linux sever at 192.168.7.101 with docker instances (including Nginx Proxy Manager at 172.30.0.10)
  2. Secondary Linux server at 192.168.7.2 with HomeAssistsant OS in a VM at 192.168.7.4

Here is the /config/configuration.yaml section for reverse proxy:

# allow nginx reverse proxy access
http:
  use_x_forwarded_for: true
  trusted_proxies:
    - 172.30.0.10
    - 172.30.0.1
    - 172.30.0.0/24
    - 172.30.33.0/24  # Add the IP address of the proxy server
    - 192.168.7.101
    - 192.168.7.0/24

I have a domain ha.xxx.yyy that is pointing to the NPM which redirects it to HomeAssistant.
When I access this domain, HomeAssistant login page shows up (just as if I was accessing it at its local IP) and I can enter username/pass and login

but as soon as I do, I get this:

HA UNABLKE

Unable to connect to Home Assistant.

Logviewer on HA does not show anything.

I googled for the last few days, but found no solution to this so I decided to post here for help.

In nginx, did you both proxy http and websockets ?

I didn’t have “websockets” enabled. Thanks!