From: David Carlier Date: Mon, 1 Jun 2015 12:21:47 +0000 (+0200) Subject: DOC: README: explain how to build with DeviceAtlas X-Git-Tag: v1.6-dev2~54 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b5efa0149f1c5f0610e30abb79b16b641f22254d;p=thirdparty%2Fhaproxy.git DOC: README: explain how to build with DeviceAtlas This diff is related to the additional documentation in order to build the DeviceAtlas module and in addition with an example of a basic configuration. --- diff --git a/README b/README index b98b919b07..c6552d1745 100644 --- a/README +++ b/README @@ -204,6 +204,34 @@ disabled by setting USE_POLL="". For example : $ gmake TARGET=tiny USE_POLL="" TARGET_CFLAGS=-fomit-frame-pointer +1.1) DeviceAtlas Device Detection +--------------------------------- + +In order to add DeviceAtlas Device Detection support, you would need to download +the API source code from https://deviceatlas.com/deviceatlas-haproxy-module and +once extracted : + + $ make TARGET= USE_PCRE=1 USE_DEVICEATLAS=1 DEVICEATLAS_INC= DEVICEATLAS_LIB= + +These are supported DeviceAtlas directives (see doc/configuration.txt) : + - deviceatlas-json-file . + - deviceatlas-log-level (0 to 3, level of information returned by + the API, 0 by default). + - deviceatlas-property-separator (character used to separate the + properties produced by the API, | by default). + +Sample configuration : + + global + deviceatlas-json-file + + ... + frontend + bind *:8881 + default_backend servers + http-request set-header X-DeviceAtlas-Data %[req.fhdr(User-Agent),da-csv(primaryHardwareType,osName,osVersion,browserName,browserVersion)] + + 2) How to install it --------------------