domains ["tile.openstreetmap.org",
"a.tile.openstreetmap.org",
"b.tile.openstreetmap.org",
- "c.tile.openstreetmap.org"]
+ "c.tile.openstreetmap.org",
+ "tile.osm.org",
+ "a.tile.osm.org",
+ "b.tile.osm.org",
+ "c.tile.osm.org"]
notifies :restart, "service[nginx]"
end
-nginx_site "tile-ssl" do
- action :delete
-end
-
nginx_site "tile" do
template "nginx_tile.conf.erb"
variables :caches => tilecaches
conf_variables :host => render[:fqdn]
end
end
-
-Dir.glob("/var/log/nginx/access.log*") do |log|
- File.unlink(log)
-end
-
-log "restart" do
- message "Restarting caching"
- notifies :restart, "service[squid]"
- notifies :restart, "service[nginx]"
-end