safer stripping of request headers

parent d9e4cd8f
......@@ -55,12 +55,10 @@ server {
resolver 1.1.1.1 1.0.0.1;
proxy_http_version 1.1;
proxy_pass_request_headers off;
proxy_pass_request_body off;
proxy_set_header Accept "application/json";
proxy_set_header Authorization "";
proxy_set_header Connection "";
proxy_set_header Cookie "";
proxy_set_header Host "$proxy_host";
proxy_set_header User-Agent "";
# we set a variable as apparently otherwise the DNS lookup is on each request
set $proxy_backend "$proxy_scheme://$proxy_host$proxy_url$is_args$args";
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment