Saltar a contenido

$is_desktop

Indicates whether the request is from a desktop or laptop device.

Type

boolean (1/0)

Possible values

  • 1 (true) - Request is from a desktop or laptop.
  • 0 (false) - Request is not from a desktop or laptop.

Example

location / {
    proxy_set_header X-Device-Type $is_desktop;
    proxy_pass http://backend;
}