From: Tom Hughes Date: Sun, 16 Feb 2020 17:49:16 +0000 (+0000) Subject: Make tilecache cookbook enable nginx cache automatically X-Git-Url: https://git.openstreetmap.org/chef.git/commitdiff_plain/b7858d9e79876bd35ae711de3a9df4f57b50e0e2?hp=0d9d62f20b15d6dcffc10acc82cac845f7f5ca76 Make tilecache cookbook enable nginx cache automatically --- diff --git a/cookbooks/tilecache/attributes/default.rb b/cookbooks/tilecache/attributes/default.rb index a552ee6fc..56f490e86 100644 --- a/cookbooks/tilecache/attributes/default.rb +++ b/cookbooks/tilecache/attributes/default.rb @@ -9,3 +9,6 @@ default[:tilecache][:ip_bucket_size] = 67108864 default[:tilecache][:net_bucket_refill] = 8192 # Per Class C bucket size default[:tilecache][:net_bucket_size] = 134217728 + +# Enable nginx cache +default[:nginx][:cache][:proxy][:enable] = true diff --git a/roles/tilecache.rb b/roles/tilecache.rb index d0d14f751..a78cac73d 100644 --- a/roles/tilecache.rb +++ b/roles/tilecache.rb @@ -13,13 +13,7 @@ default_attributes( :tcp_fastopen_key => "tile" }, :nginx => { - :access_log => false, - :cache => { - :proxy => { - :enable => true, - :keys_zone => "proxy_cache_zone:128M" - } - } + :access_log => false }, :sysctl => { :sockets => {