2024-09-17 14:11:00 +03:00
|
|
|
map $http_upgrade
|
|
|
|
$req_connection
|
|
|
|
{
|
|
|
|
default upgrade;
|
|
|
|
"" "";
|
|
|
|
}
|
|
|
|
|
|
|
|
map $http_user_agent
|
|
|
|
$req_user_agent
|
|
|
|
{
|
|
|
|
default $http_user_agent;
|
|
|
|
{%- if env.NGX_HTTP_FAKE_UA %}
|
|
|
|
## merely fake
|
2024-11-08 12:10:06 +03:00
|
|
|
"" {{ env.NGX_HTTP_FAKE_UA | ngx_esc }};
|
2024-09-17 14:11:00 +03:00
|
|
|
{%- else %}
|
|
|
|
"" "Angie/$angie_version";
|
|
|
|
{%- endif %}
|
|
|
|
}
|
|
|
|
|
|
|
|
map $http_accept
|
|
|
|
$req_accept
|
|
|
|
{
|
|
|
|
volatile;
|
|
|
|
default $http_accept;
|
|
|
|
"" "*/*";
|
|
|
|
}
|