feat: restart nginx on ssl change #163

Merged
unkinben merged 1 commits from neoloc/restart_nginx into develop 2024-09-27 21:51:16 +10:00

View File

@ -113,6 +113,7 @@ class profiles::nginx::simpleproxy (
proxy_cache_max_size => '1024m',
proxy_cache_inactive => '10m',
proxy_temp_path => '/var/cache/nginx/cache_temp',
service_manage => false,
}
# create the nginx vhost with the merged parameters
@ -132,5 +133,11 @@ class profiles::nginx::simpleproxy (
value => 'on',
}
}
service { 'nginx':
ensure => true,
enable => true,
subscribe => [File[$selected_ssl_cert], File[$selected_ssl_key]],
}
}
}