HAProxy Enterprise Documentation 2.5r1
Install the 51Degrees module
Log into your account at the 51Degrees website and download the enterprise database in Trie format. Copy the
.trie
file to your HAProxy Enterprise server (e.g./etc/hapee-2.5/51Degrees-LiteV3.4.trie
).-
Install the 51Degrees module according to your platform:
$ # On Debian/Ubuntu $ sudo apt-get install hapee-2.5r1-lb-51d
$ # On CentOS/RedHat/Oracle/Photon OS $ sudo yum install hapee-2.5r1-lb-51d
$ # On SUSE $ sudo zypper install hapee-2.5r1-lb-51d
$ # On FreeBSD $ sudo pkg install hapee-2.5r1-lb-51d
-
In the
global
section of your configuration, add the following lines. Change the51degrees-property-name-list
depending on the properties you want to use:global module-path
/opt/hapee-2.5r1/modules/module-load hapee-lb-51d.so 51degrees-data-file/etc/hapee-2.5/51Degrees-LiteV3.4.trie51degrees-property-name-list DeviceType IsMobile IsTablet Reload the HAProxy Enterprise configuration to apply the changes.
Next up
Use fetches and converters to perform database lookups