Puppet Class: isp3node::nginx::ispproxyhost
- Defined in:
- manifests/nginx/ispproxyhost.pp
Summary
Defaultpage location for ISPConfigOverview
Adds a location to the defaultpage to access ISPConfig at /cp/ Only on the master node, because all other hosts aren't allowed to reverse proxy to ISPConfig
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'manifests/nginx/ispproxyhost.pp', line 9
class isp3node::nginx::ispproxyhost {
if($facts['fqdn'] == lookup('isp3node::master')) {
nginx::resource::location{'cp':
ensure => present,
server => $facts['fqdn'],
ssl => true,
ssl_only => true,
location => '/cp/',
proxy => "https://${lookup('isp3node::master')}:8080/"
}
isp3node::nginx::startpageentry { 'isp':
verbose_name => 'Control Panel',
path => '/cp/',
}
}
}
|