]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
DOC: README: DeviceAtlas sample configuration updates
authorDavid Carlier <dcarlier@afilias.info>
Fri, 25 Sep 2015 13:06:08 +0000 (14:06 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 28 Sep 2015 12:01:27 +0000 (14:01 +0200)
Needs to distinguish the convertor and the fetch type samples.
More explanations are made about their specific purposes.

README

diff --git a/README b/README
index 5ebc1415502ab82c7c6b833e3b8eb206ee5f473f..eb8f139ffca459b82eb11b3ecb11684752305a1a 100644 (file)
--- a/README
+++ b/README
@@ -233,8 +233,25 @@ Sample configuration :
     frontend
        bind *:8881
        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
 -------------------------------