Running LiveConfig behind a proxy

Category: LiveConfig
Created: 2019-10-25
Updated: 2021-05-05

If you run LiveConfig behind a proxy (i.e. you use a proxy to access LiveConfig), you will see that all log entries in LiveConfig show the IP address of your proxy server.

To log the IP address of the actual user, set the following options in /etc/liveconfig/liveconfig.conf:

http_proxy_ip_from = 127.0.0.1
http_proxy_url = https://your.proxy.server
# if you're using Apache as proxy web server:
http_proxy_ip_header = X-Forwarded-For
# if you're using NGINX as proxy web server:
http_proxy_ip_header = X-Real-IP

Replace XX.XX.XX.XX with the IP address of your proxy server (or 127.0.0.1 for a local proxy).

Finally restart LiveConfig to load the updated configuration.