NGINX fail to login

After installing DuckDNS and NGINX, it’s unable to remote login into HA. The error shown is
Unable to fetch auth providers. https://xxxxxxx.duckdns.org/?auth_callback=1

This section is defined in the configuration.yaml

http:
  # ssl_certificate: /ssl/fullchain.pem
  # ssl_key: /ssl/privkey.pem
  use_x_forwarded_for: true
  trusted_proxies:
    - 172.30.33.0/24
    - 127.0.0.1
    - ::1

I tried a lot of solutions from this forum, but still no luck.

Using this in de configuration.yaml works perfect. But then Duckdns handles the certification.

http:
  ssl_certificate: /ssl/fullchain.pem
  ssl_key: /ssl/privkey.pem