mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2024-12-11 14:05:12 +00:00
d0027ed5b1
WURFL is a high-performance and low-memory footprint mobile device detection software component that can quickly and accurately detect over 500 capabilities of visiting devices. It can differentiate between portable mobile devices, desktop devices, SmartTVs and any other types of devices on which a web browser can be installed. In order to add WURFL device detection support, you would need to download Scientiamobile InFuze C API and install it on your system. Refer to www.scientiamobile.com to obtain a valid InFuze license. Any useful information on how to configure HAProxy working with WURFL may be found in: doc/WURFL-device-detection.txt doc/configuration.txt examples/wurfl-example.cfg Please find more information about WURFL device detection API detection at https://docs.scientiamobile.com/documentation/infuze/infuze-c-api-user-guide
50 lines
1.5 KiB
INI
50 lines
1.5 KiB
INI
#
|
|
# This is an example of how to configure HAProxy to be used with WURFL Device Detection module.
|
|
#
|
|
# HAProxy needs to be compiled with support for this. See README section 1.3
|
|
#
|
|
|
|
global
|
|
|
|
# The WURFL data file
|
|
wurfl-data-file /usr/share/wurfl/wurfl-eval.xml
|
|
|
|
# WURFL patches definition (as much as needed, patches will be applied in the same order as specified in this conf file)
|
|
#wurfl-patch-file /path/to/patch1.xml;
|
|
|
|
# WURFL engine target: one of the following (default is performance)
|
|
wurfl-engine-mode performance
|
|
#wurfl-engine-mode accuracy
|
|
|
|
# WURFL cache: one of the following
|
|
## double LRU cache
|
|
wurfl-cache-size 100000,30000
|
|
## single LRU cache
|
|
#wurfl-cache-size 100000
|
|
## no cache
|
|
#wurfl-cache-size 0
|
|
|
|
wurfl-information-list-separator |
|
|
|
|
# list of WURFL capabilities, virtual capabilities, property names planned to be used in injected headers
|
|
wurfl-information-list wurfl_id model_name
|
|
|
|
defaults
|
|
mode http
|
|
timeout connect 30s
|
|
timeout client 30s
|
|
timeout server 30s
|
|
|
|
frontend TheFrontend
|
|
bind 192.168.1.22:80
|
|
default_backend TheBackend
|
|
|
|
# inject a header called X-Wurfl-All with all the WURFL informations listed in wurfl-information-list
|
|
http-request set-header X-Wurfl-All %[wurfl-get-all()]
|
|
|
|
# inject a header called X-WURFL-PROPERTIES with the "wurfl_id" information (should be listed in wurfl-information-list)
|
|
#http-request set-header X-WURFL-PROPERTIES %[wurfl-get(wurfl_id)]
|
|
|
|
backend TheBackend
|
|
server TheWebServer 192.168.0.40:80
|