From b7858d9e79876bd35ae711de3a9df4f57b50e0e2 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Sun, 16 Feb 2020 17:49:16 +0000 Subject: [PATCH 1/1] Make tilecache cookbook enable nginx cache automatically --- cookbooks/tilecache/attributes/default.rb | 3 +++ roles/tilecache.rb | 8 +------- 2 files changed, 4 insertions(+), 7 deletions(-) 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 => { -- 2.43.2