From 766f124b2c4e7a40b96b3f7107231391ada03e58 Mon Sep 17 00:00:00 2001 From: Ben Vincent Date: Sat, 7 Dec 2024 23:50:45 +1100 Subject: [PATCH] feat: edgecache updates - update metadatacache size - increase cache age from 60d to 365d - subscribe nginx service to ssl certs --- site/profiles/manifests/edgecache/nginx.pp | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/site/profiles/manifests/edgecache/nginx.pp b/site/profiles/manifests/edgecache/nginx.pp index 30e2c69..970d43a 100644 --- a/site/profiles/manifests/edgecache/nginx.pp +++ b/site/profiles/manifests/edgecache/nginx.pp @@ -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]], + } } -- 2.47.3