Zum Inhalt

$is_wearable

Indicates whether the device making the request is a wearable device.

Type

boolean (1/0)

Possible values

  • 1 (true) - The device is a wearable.
  • 0 (false) - The device is not a wearable.

Example

location /api {
    if ($is_wearable) {
        proxy_set_header X-Device-Type "wearable";
    }
    proxy_pass http://backend;
}