logo

Settings

HAProxy-WI config


Edit $HOME_HAPROXY-WI/app/haproxy-wi.cfg with your env. Default config:

Go to UP

HAProxy config

If you use HAProxy service installed without HAProxy-WI then for RunTime API, Metrics and for "Auto start" you have to enable state file and stat socket on HAProxy servers, also you have to install socat to the all haproxy servers, and configure HAProxy service. Add to HAProxy config next and restart the services:

For Antibot protection add the next two backends:

How to configure HAProxy-WI for using custom port and set login/password for HAProxy status page you may read here

Go to UP

Nginx config

If you use installed Nginx without HAProxy-WI then for viewing stats and for "Auto start" you should add the next configuration to all your Nginx servers:

And generate login/password with htpasswd into /etc/nginx/status_page_passwdfile

How to configure HAProxy-WI for using custom port and set login/password for Nginx status page you may read here

Go to UP

DB settings

Default the HAProxy-WI uses the Sqlite, if you want to use the MySQL enable it in the config file(haproxy-wi.cfg):

Create a database in you MySQL server:

And run the create_db.py file

Go to UP

Apache settings


If you want to use your own domain name you should edit haproxy-wi.conf for Apache:


Edit the next string, replace "haproxy-wi.example.com" on your own:


And if you want to have redirect from the port 80 to the port 443, you should add next:


In order to change the certificates you should edit:

Go to UP
Go back