Compare commits

1 Commits

Author SHA1 Message Date
Jenkins Server
78809dfab9 Recommit for updates in build 43 2026-03-14 15:15:31 +01:00
3 changed files with 7 additions and 8 deletions

View File

@@ -512,7 +512,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

@@ -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,15 +4,14 @@
############################################################################### ###############################################################################
<IfModule remoteip_module> <IfModule remoteip_module>
RemoteIPHeader <%= @ae_remoteip_header -%> RemoteIPHeader <%= @remoteip_header %>
<% @ae_trusted_proxy.each do |proxy| %> <% @trusted_proxies.each do |proxy| -%>
RemoteIPTrustedProxy <%= proxy -%> RemoteIPTrustedProxy <%= proxy %>
<% end -%> <% end -%>
<% @ae_internal_proxy.each do |proxy| %> <% @internal_proxies.each do |proxy| -%>
RemoteIPInternalProxy <%= proxy -%> RemoteIPInternalProxy <%= proxy %>
<% end -%> <% end -%>
# Use real client IP in all standard log formats # Use real client IP in all standard log formats
LogFormat "%a %l %u %t \"%r\" %>s %b" common LogFormat "%a %l %u %t \"%r\" %>s %b" common
LogFormat "%a %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\"" combined LogFormat "%a %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\"" combined