Thanks a lot for the help!
I have exactly this configuration:
… except it was missing the “proxy_set_header X-Real-IP $remote_addr;”.
So, I guess it could be related.
It seems to work ok now. I’ll do more tests and report it tomorrow if this solves the issue.
Thanks!