blob: e5aa01d3f10f965aac2b0ba539cccfbe1a648be4 [file] [log] [blame]
Willy Tarreaub3cc9f22019-04-19 16:03:32 +02001#
2# This is an example of how to configure HAProxy to be used with WURFL Device Detection module.
3#
4# HAProxy needs to be compiled with support for this. See README section 1.3
5#
6
7global
8
9 # The WURFL data file
paulborilebad132c2019-04-18 11:57:04 +020010 wurfl-data-file /usr/share/wurfl/wurfl.zip
Willy Tarreaub3cc9f22019-04-19 16:03:32 +020011
12 # WURFL patches definition (as much as needed, patches will be applied in the same order as specified in this conf file)
13 #wurfl-patch-file /path/to/patch1.xml;
14
Willy Tarreaub3cc9f22019-04-19 16:03:32 +020015 #wurfl-cache-size 100000
16 ## no cache
17 #wurfl-cache-size 0
18
19 wurfl-information-list-separator |
20
21 # list of WURFL capabilities, virtual capabilities, property names planned to be used in injected headers
22 wurfl-information-list wurfl_id model_name
23
24defaults
25 mode http
26 timeout connect 30s
27 timeout client 30s
28 timeout server 30s
29
30frontend TheFrontend
31 bind 192.168.1.22:80
32 default_backend TheBackend
33
34 # inject a header called X-Wurfl-All with all the WURFL informations listed in wurfl-information-list
35 http-request set-header X-Wurfl-All %[wurfl-get-all()]
36
37 # inject a header called X-WURFL-PROPERTIES with the "wurfl_id" information (should be listed in wurfl-information-list)
38 #http-request set-header X-WURFL-PROPERTIES %[wurfl-get(wurfl_id)]
39
40backend TheBackend
41 server TheWebServer 192.168.0.40:80