IPAddr.new(resolver).ipv6? ? "[#{resolver}]" : resolver
end
-nginx_site "tile-ssl" do
- template "nginx_tile_ssl.conf.erb"
- variables :certificate => certificate, :resolvers => resolvers, :caches => tilecaches
-end
-
template "/usr/local/bin/nginx_generate_tilecache_qos_map" do
source "nginx_generate_tilecache_qos_map.erb"
owner "root"
action :run
end
+nginx_site "tile-ssl" do
+ template "nginx_tile_ssl.conf.erb"
+ variables :certificate => certificate, :resolvers => resolvers, :caches => tilecaches
+end
+
service "nginx-certificate-restart" do
service_name "nginx"
action :nothing