NGINX SSL Proxy - Works great external w./ SSL, but cannot access internal IP without

Hello all!

I’m having a weird issue for which I find plenty of reversed case: after setting up duckdns with let’s encrypt support, I was able to access my raspberry-pi based home assistant instance through its httpS://xxxx.duckdns.org:8123 address. I wanted to keep access to my local 192.168.X.X WITHOUT any SSL requirement and I installed the NGINX home assistant SSL proxy as recommended in numerous posts.

I configured it properly in the integration’s configuration menu and added the following section in the configuration.yaml of home assistant

http:
  use_x_forwarded_for: true
  trusted_proxies:
    - 192.168.X.X
    - 127.0.0.1

I now am able to access Home assistant with an httpS prefix using duckDNS, but a simple local http://192.168.X.X:8123 does not work, although the httpS version of it works perfectly.

Any idea of what I’m doing wrong? What is needed for NGINX not to request SSL for local address ?

Thanks!