feat: edgecache updates #185
@ -105,13 +105,14 @@ class profiles::edgecache::nginx {
|
||||
# manage the nginx class
|
||||
class { 'nginx':
|
||||
proxy_cache_path => {
|
||||
"${data_root}/cache" => 'cache:128m',
|
||||
"${data_root}/cache" => 'cache:256m',
|
||||
},
|
||||
proxy_cache_levels => '1:2',
|
||||
proxy_cache_keys_zone => 'cache:128m',
|
||||
proxy_cache_keys_zone => 'cache:256m',
|
||||
proxy_cache_max_size => '30000m',
|
||||
proxy_cache_inactive => '60d',
|
||||
proxy_cache_inactive => '365d',
|
||||
proxy_temp_path => "${data_root}/cache_tmp",
|
||||
service_manage => false,
|
||||
}
|
||||
|
||||
# create the nginx vhost with the merged parameters
|
||||
@ -126,4 +127,10 @@ class profiles::edgecache::nginx {
|
||||
* => $data,
|
||||
}
|
||||
}
|
||||
|
||||
service { 'nginx':
|
||||
ensure => true,
|
||||
enable => true,
|
||||
subscribe => [File[$selected_ssl_cert], File[$selected_ssl_key]],
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user