diff --git a/templates/remoteip.conf b/templates/remoteip.conf index 890e75f..3857947 100644 --- a/templates/remoteip.conf +++ b/templates/remoteip.conf @@ -1,6 +1,6 @@ # Ansible managed RemoteIPHeader X-Forwarded-For -RemoteIPTrustedProxy {{ gateway_host_ip }} +RemoteIPTrustedProxy {{ gateway_host_ip | default('127.0.0.1') }} LogFormat "%a %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" remotip