Nginx Proxy Manager + Cloudfare DNS + Domain = Login attemp failed

Hi all, kind of lost here, tried many options without success.

On a proxmox server Im running HA as a VM and nginx proxy manager as a container. Using my own domain I set up cloudfare DNS, so I can access my services online. All is working great, forwarding ports 443 and 80 to the nginx proxy manager ip container

Now I can access my ha instance going to https://ha.mydomain.com , I reach the login page, but using the correct credentials it shows UNABLE TO CONNECT TO HOME ASSISTANT.

Connecting locally this is the error:
imagen

ip list is:
HA: 192.168.1.4
Nginx: 192.168.1.58

My relevant config.yaml is: (Have tried many combinations without success)

homeassistant:
  auth_providers:
    - type: homeassistant
    - type: trusted_networks
      trusted_networks:
        - 192.168.1.0/24
      allow_bypass_login: true

http:
    ip_ban_enabled: false
    use_x_forwarded_for: true
    trusted_proxies:
      - 172.70.0.0/24
      #- 192.168.1.55
      - 192.168.1.0/24

This is the nginx config
Screen Shot 2022-06-16 at 15.53.46

Any help more than welcome, I know this is a little mistake in the configuration but cant find what!

1 Like