Puppet Class: varnish::trusted_proxies
- Defined in:
- modules/varnish/manifests/trusted_proxies.pp
Overview
Class varnish::trusted_proxies
Creates /var/netmapper/trusted_proxies.json, a vmod_netmapper(3) database file containing the list of proxy server IP ranges we consider as trusted when it comes to using the information they provide in X-Forwarded-For to determine the actual client IP address.
The file is stored as misc/trusted_proxies.json in the private puppet repo.
9 10 11 12 13 14 15 16 |
# File 'modules/varnish/manifests/trusted_proxies.pp', line 9
class varnish::trusted_proxies {
file { '/var/netmapper/trusted_proxies.json':
owner => 'netmap',
group => 'netmap',
mode => '0444',
content => secret('misc/trusted_proxies.json'),
}
}
|