From: Grant Slater Date: Tue, 30 Jun 2020 20:44:16 +0000 (+0100) Subject: tilecache: Do not pass request header + body X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/d9b30b9713a815dd1d9c962c0fb873340504296b tilecache: Do not pass request header + body --- diff --git a/cookbooks/tilecache/templates/default/nginx_tile.conf.erb b/cookbooks/tilecache/templates/default/nginx_tile.conf.erb index 1965de764..9e214675a 100644 --- a/cookbooks/tilecache/templates/default/nginx_tile.conf.erb +++ b/cookbooks/tilecache/templates/default/nginx_tile.conf.erb @@ -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;