Configuration duck dns and nginx "400: Bad Request"

Hello looking for some help how to set up HA in order to login from remote.

I used DuckDns and Nginx ad it looks all correctly set up, but when i go to login using my remote address i get the message : 400 Bad Request.

in the log i get this message:

 [homeassistant.components.http.forwarded] Received X-Forwarded-For header from an untrusted proxy

here my config file:

  use_x_forwarded_for: true

i don’t understand which ip should i put on trusted proxies, I’m using Home assistant OS 9.5

Did you restart HA after modification of configuration.yaml?