mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2024-12-24 13:42:16 +00:00
DOC: README: DeviceAtlas sample configuration updates
Needs to distinguish the convertor and the fetch type samples. More explanations are made about their specific purposes.
This commit is contained in:
parent
29b3ca3795
commit
00d7d61f0c
19
README
19
README
@ -233,8 +233,25 @@ Sample configuration :
|
|||||||
frontend
|
frontend
|
||||||
bind *:8881
|
bind *:8881
|
||||||
default_backend servers
|
default_backend servers
|
||||||
http-request set-header X-DeviceAtlas-Data %[req.fhdr(User-Agent),da-csv(primaryHardwareType,osName,osVersion,browserName,browserVersion)]
|
|
||||||
|
|
||||||
|
There are two distinct methods available, one which leverages all HTTP headers
|
||||||
|
and one which uses only a single HTTP header for the detection. The former
|
||||||
|
method is highly recommended and more accurate.
|
||||||
|
|
||||||
|
|
||||||
|
All HTTP headers
|
||||||
|
|
||||||
|
|
||||||
|
http-request set-header X-DeviceAtlas-Data %[da-csv-fetch(primaryHardwareType,osName,osVersion,browserName,browserVersion)]
|
||||||
|
|
||||||
|
|
||||||
|
Single HTTP header (e.g. User-Agent)
|
||||||
|
|
||||||
|
|
||||||
|
http-request set-header X-DeviceAtlas-Data %[req.fhdr(User-Agent),da-csv-conv(primaryHardwareType,osName,osVersion,browserName,browserVersion)]
|
||||||
|
|
||||||
|
|
||||||
|
Please find more information about DeviceAtlas and the detection methods at https://deviceatlas.com/resources .
|
||||||
|
|
||||||
1.2) 51Degrees Device Detection
|
1.2) 51Degrees Device Detection
|
||||||
-------------------------------
|
-------------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user