]> git.openstreetmap.org Git - chef.git/commitdiff
tilecache: Add SSL traffic rate limit
authorGrant Slater <git@firefishy.com>
Mon, 3 Oct 2016 11:20:24 +0000 (12:20 +0100)
committerGrant Slater <git@firefishy.com>
Mon, 3 Oct 2016 11:20:24 +0000 (12:20 +0100)
cookbooks/tilecache/templates/default/nginx_tile_ssl.conf.erb

index 71b8258285a35dc2fc4666851cbe7cae75b4765b..793c5f00d6bdf41c43ea366e9c7fd569167247b4 100644 (file)
@@ -35,5 +35,8 @@ server {
       proxy_set_header X-Forwarded-For $remote_addr;
       proxy_http_version 1.1;
       proxy_set_header Connection "";
       proxy_set_header X-Forwarded-For $remote_addr;
       proxy_http_version 1.1;
       proxy_set_header Connection "";
+
+      # Slow traffic slightly
+      limit_rate 8192;
     }
 }
     }
 }