add ranges to template and update Readme

This commit is contained in:
2026-03-14 15:27:00 +01:00
parent 5bbf2fb1d0
commit 5fbc2e3e88
2 changed files with 4 additions and 4 deletions

View File

@@ -66,7 +66,7 @@ class confdroid_apache::params (
Boolean $ae_use_lb = false, Boolean $ae_use_lb = false,
Array $ae_trusted_proxy = ['127.0.0.1','10.0.1.0/24'], Array $ae_trusted_proxy = ['127.0.0.1','10.0.1.0/24'],
Array $ae_internal_proxy = ['127.0.0.1','10.0.1.0/24'], Array $ae_internal_proxy = ['127.0.0.1','10.0.1.0/24'],
String $ae_remoteip_header = 'X-Forwarded-For', String $ae_remoteip_header = 'X-Forwarded-For',
) { ) {
# facts # facts

View File

@@ -4,11 +4,11 @@
############################################################################### ###############################################################################
<IfModule remoteip_module> <IfModule remoteip_module>
RemoteIPHeader <%= @remoteip_header %> RemoteIPHeader <%= @ae_remoteip_header %>
<% @trusted_proxies.each do |proxy| -%> <% @ae_trusted_proxy.each do |proxy| -%>
RemoteIPTrustedProxy <%= proxy %> RemoteIPTrustedProxy <%= proxy %>
<% end -%> <% end -%>
<% @internal_proxies.each do |proxy| -%> <% @ae_internal_proxy.each do |proxy| -%>
RemoteIPInternalProxy <%= proxy %> RemoteIPInternalProxy <%= proxy %>
<% end -%> <% end -%>