Visitors IP - Matomo 5

Hi, I’ve installed Matomo 5.0 RC4 behind a proxy. I read the guide and more.
I do have a nginx as a web server with php-fpm. In nginx I can see in my nginx log, that nginx get the public IP of the visitors in HTTP_X_FORWARDED_FOR. I have also added the following to matomo/config/config.ini.php
proxy_client_headers[] = HTTP_X_FORWARDED_FOR
proxy_host_headers[] = HTTP_X_FORWARDED_HOST

But still the visitors show up in Matomo as “”.

I also made a testpage with phpinfo() and I can there see in PHP Variables that $_SERVER[‘HTTP_X_FORWARDED_FOR’] the public IP is in there but still this is not picked up by Matomo.

What am I doing wrong here? Any tips?

OK, case closed. It was a small issue with our infrastructure, the LB was passing HTTP_X_FORWARDED_FOR to nginx but it was passed with some info appended as “IP-addr%1” which made Matomo to not pick up the IP. Now when we fixed that everything work as expected.