OP#493 add option for reading client IPs behind loadbalanacer

This commit is contained in:
2026-03-14 13:16:12 +01:00
parent 8e92ea1393
commit e53a3acc1d
4 changed files with 46 additions and 19 deletions

View File

@@ -92,6 +92,21 @@ class confdroid_apache::server::files (
}
}
if $ae_use_lb == true {
file { $ae_remoteip_file:
ensure => file,
owner => 'root',
group => 'root',
mode => '0644',
selrange => s0,
selrole => object_r,
seltype => httpd_conf_t,
seluser => system_u,
content => template($ae_remoteip_erb),
notify => Service['httpd'],
}
}
# manage index.html
file { $ae_index_file: