Hello Yuri,
i have try all (with my skill).. but with no result.. i can't have client IP in EspoCrm behind a proxy (nginx reverse proxy) .. only the IP of Proxy.
do you think this is the solution ? or where i can write this kind of solution and test it ?
Proxy send IP with header : HTTP_X_FORWARDED_FOR
Regards
i have try all (with my skill).. but with no result.. i can't have client IP in EspoCrm behind a proxy (nginx reverse proxy) .. only the IP of Proxy.
do you think this is the solution ? or where i can write this kind of solution and test it ?
Proxy send IP with header : HTTP_X_FORWARDED_FOR
PHP Code:
$ip = $_SERVER['REMOTE_ADDR']? : ( $_SERVER['HTTP_X_FORWARDED_FOR'] ? : $_SERVER['HTTP_CLIENT_IP'] );
Comment