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.

This section is defined in the configuration.yaml

  # ssl_certificate: /ssl/fullchain.pem
  # ssl_key: /ssl/privkey.pem
  use_x_forwarded_for: true
    - ::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.

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