]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/tilecache/attributes/default.rb
Make tilecache cookbook enable nginx cache automatically
[chef.git] / cookbooks / tilecache / attributes / default.rb
index 6487cd9071a6bc8b8a1dd5a8bcb70c24fb93f388..56f490e86f68b5dba038f8fcd47a7c04b371f821 100644 (file)
@@ -1,14 +1,14 @@
-
-default[:tilecache][:tile_parent] = "parent.tile.openstreetmap.org"
+default[:tilecache][:tile_parent] = "render.openstreetmap.org"
 default[:tilecache][:tile_siblings] = []
 
 # Per IP bucket refill rate
-default[:tilecache][:ip_bucket_refill] = "4096"
+default[:tilecache][:ip_bucket_refill] = 4096
 # Per IP bucket size
-default[:tilecache][:ip_bucket_size] = "67108864"
+default[:tilecache][:ip_bucket_size] = 67108864
 # Per Class C refill rate
-default[:tilecache][:net_bucket_refill] = "8192"
+default[:tilecache][:net_bucket_refill] = 8192
 # Per Class C bucket size
-default[:tilecache][:net_bucket_size] = "134217728"
+default[:tilecache][:net_bucket_size] = 134217728
 
-default[:tilecache][:ssl][:certificate] = "tile.openstreetmap"
+# Enable nginx cache
+default[:nginx][:cache][:proxy][:enable] = true