]> git.openstreetmap.org Git - chef.git/commitdiff
tilecache: Do not pass request header + body
authorGrant Slater <git@firefishy.com>
Tue, 30 Jun 2020 20:44:16 +0000 (21:44 +0100)
committerGrant Slater <git@firefishy.com>
Tue, 30 Jun 2020 20:44:16 +0000 (21:44 +0100)
cookbooks/tilecache/templates/default/nginx_tile.conf.erb

index 1965de764c48040e5be49c822163713c96a56091..9e214675ab7eadc51955b390712438b68aa13d55 100644 (file)
@@ -344,25 +344,9 @@ server {
 
       # Replace host header.
       proxy_set_header Host 'tile.openstreetmap.org';
-      # Do not pass cookies to backends.
-      proxy_set_header Cookie '';
-      # Do not pass Accept-Encoding to backends.
-      proxy_set_header Accept-Encoding '';
-      # Do not pass Accept to backends.
-      proxy_set_header Accept '';
-      # Do not pass Accept-Language to backends as unused.
-      proxy_set_header Accept-Language '';
-      proxy_set_header Accept-Charset '';
-      # Do not send origin, we allow all.
-      proxy_set_header origin '';
-      # Do not pass invalid headers to backend.
-      proxy_set_header X-Forwarded-Host '';
-      proxy_set_header X-Host '';
-      proxy_set_header Authorization '';
-      proxy_set_header Proxy-Authorization '';
-
-      # Drop partial requests
-      proxy_set_header range '';
+      # Drop all request headers and request body
+      proxy_pass_request_headers off;
+      proxy_pass_request_body off;
 
       # Do not allow setting cookies from backends due to caching.
       proxy_ignore_headers Set-Cookie;