Change ip display in log

Hi everybody,
I set a reverse proxy with NextCloud and it works great. Apart from a small problem that comes in from the outside, you see the internal IP of the reverse proxy and not the real one who is trying to enter. I set up in the reverse proxy: proxy_set_header X-Real-IP $remote_addr

But NextCloud still shows the internal Is there anything else that needs to be set in reverse proxy or in NextCloud? Because as it seems it uses a different method to take the IP rather than remote_addr

I hope I was clear about my problem and hope you will help me find a solution because it’s really important lately!

And I know I can look at the log of the reverse proxy but I prefer and want it to be set correctly in NextCloud

Thanks
Itay