X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/a839868a4ce8d05946a97f83c1aa451028c07889..c8372fbc6df23a6a014341d453c48532b78fedbd:/cookbooks/tilecache/templates/default/nginx_tile_ssl.conf.erb diff --git a/cookbooks/tilecache/templates/default/nginx_tile_ssl.conf.erb b/cookbooks/tilecache/templates/default/nginx_tile_ssl.conf.erb index 0b587e242..7f01c3fc8 100644 --- a/cookbooks/tilecache/templates/default/nginx_tile_ssl.conf.erb +++ b/cookbooks/tilecache/templates/default/nginx_tile_ssl.conf.erb @@ -1,17 +1,19 @@ upstream tile_cache_backend { server 127.0.0.1; <% @caches.each do |cache| -%> + <% if cache[:hostname] != node[:hostname] -%> #Server <%= cache[:hostname] %> <% cache.ipaddresses(:family => :inet, :role => :external).sort.each do |address| -%> server <%= address %> backup; <% end -%> <% end -%> + <% end -%> keepalive 32; } server { - listen 443 ssl spdy default_server; + listen 443 ssl default_server; server_name localhost; proxy_buffers 8 64k; @@ -32,5 +34,6 @@ server { proxy_pass http://tile_cache_backend; proxy_set_header X-Forwarded-For $remote_addr; proxy_http_version 1.1; + proxy_set_header Connection ""; } }