26 lines
410 B
Plaintext
26 lines
410 B
Plaintext
|
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
|
||
|
"" {{ env.NGX_HTTP_FAKE_UA.__repr__() }};
|
||
|
{%- else %}
|
||
|
"" "Angie/$angie_version";
|
||
|
{%- endif %}
|
||
|
}
|
||
|
|
||
|
map $http_accept
|
||
|
$req_accept
|
||
|
{
|
||
|
volatile;
|
||
|
default $http_accept;
|
||
|
"" "*/*";
|
||
|
}
|