move proxy_set_headers directives into location template