systopia / CiviProxy

A security proxy for CiviCRM
GNU Affero General Public License v3.0
7 stars 18 forks source link

REMOTE_ADDR is not the remote address when CiviProxy is installed behind a reverse proxy server #61

Open Mediwe opened 2 years ago

Mediwe commented 2 years ago

When CiviProxy is installed behind a reverse proxy server, $_SERVER variables are filled in differently:

'HTTP_X_FORWARDED_FOR' contains the original remote address 'REMOTE_ADDR' contains the IP address of the reverse proxy server

It should be usefull if one could define n the config file which element should be used to check the remote address.