2018-02-07 04:39:42 +00:00
|
|
|
[main]
|
|
|
|
#Path to files destination
|
2018-04-26 16:24:36 +00:00
|
|
|
fullpath = /var/www/haproxy-wi
|
2018-04-28 14:42:38 +00:00
|
|
|
cgi_path = ${fullpath}/app/
|
2018-04-26 16:24:36 +00:00
|
|
|
log_path = ${fullpath}/log/
|
|
|
|
cert_local_dir = ${cgi_path}/certs/
|
2018-02-07 04:39:42 +00:00
|
|
|
time_zone = UTC
|
2018-04-30 06:04:21 +00:00
|
|
|
proxy =
|
2018-05-02 11:11:22 +00:00
|
|
|
#Time to live users sessions. In days
|
|
|
|
session_ttl = 5
|
2018-02-07 04:39:42 +00:00
|
|
|
|
|
|
|
[configs]
|
|
|
|
#Server for save configs from HAproxy servers
|
|
|
|
haproxy_configs_server = localhost
|
|
|
|
#Dir where configs will be save
|
2018-04-28 15:09:27 +00:00
|
|
|
haproxy_save_configs_dir = ${main:fullpath}/configs/hap_config/
|
|
|
|
kp_save_configs_dir = ${main:fullpath}/configs/kp_config/
|
2018-02-07 04:39:42 +00:00
|
|
|
|
2018-04-23 16:20:19 +00:00
|
|
|
[mysql]
|
|
|
|
#Enable MySQL DB. If default will be used Sqlite DB. Default disable
|
|
|
|
enable = 0
|
|
|
|
mysql_user = haproxy-wi
|
|
|
|
mysql_password = haproxy-wi
|
|
|
|
mysql_db = haproxywi
|
|
|
|
mysql_host = 127.0.0.1
|
|
|
|
|
2018-02-07 04:39:42 +00:00
|
|
|
[ssh]
|
|
|
|
#SSH keys to connect without password to HAproxy servers
|
2018-04-28 14:42:38 +00:00
|
|
|
ssh_keys = ${main:fullpath}/app/id_rsa.pem
|
2018-02-07 04:39:42 +00:00
|
|
|
|
|
|
|
[logs]
|
|
|
|
#Logs save locally, disable by default
|
|
|
|
local_path_logs = /var/log/haproxy.log
|
|
|
|
#If exist syslog server for HAproxy logs
|
|
|
|
syslog_server_enable = 0
|
|
|
|
syslog_server =
|
2018-05-02 11:11:22 +00:00
|
|
|
#Time of storage of logs of user activity, in days
|
|
|
|
log_time_storage = 14
|
2018-02-07 04:39:42 +00:00
|
|
|
|
|
|
|
[telegram]
|
|
|
|
#Send log message to telegram channel
|
|
|
|
#Default bot send message disable
|
|
|
|
enable = 0
|
2018-04-28 04:06:48 +00:00
|
|
|
token =
|
2018-04-26 16:24:36 +00:00
|
|
|
channel_name =
|
2018-02-07 04:39:42 +00:00
|
|
|
|
|
|
|
[haproxy]
|
|
|
|
#Command for restart HAproxy service
|
2018-04-26 13:03:48 +00:00
|
|
|
restart_command = systemctl reload haproxy
|
2018-03-24 16:58:42 +00:00
|
|
|
status_command = systemctl status haproxy
|
2018-02-07 04:39:42 +00:00
|
|
|
#Username and password for Stats web page HAproxy
|
2018-04-21 14:40:59 +00:00
|
|
|
stats_user = admin
|
|
|
|
stats_password = password
|
2018-02-07 04:39:42 +00:00
|
|
|
stats_port = 8085
|
|
|
|
stats_page = stats
|
2018-04-21 14:40:59 +00:00
|
|
|
haproxy_dir = /etc/haproxy
|
|
|
|
haproxy_config_path = ${haproxy_dir}/haproxy.cfg
|
|
|
|
server_state_file = ${haproxy_dir}/haproxy.state
|
2018-04-04 08:44:45 +00:00
|
|
|
haproxy_sock = /var/run/haproxy.sock
|
2018-02-07 04:39:42 +00:00
|
|
|
#Temp store configs, for haproxy check
|
2018-04-27 13:34:11 +00:00
|
|
|
tmp_config_path = /tmp/
|
2018-04-25 12:23:05 +00:00
|
|
|
cert_path = /etc/ssl/certs/
|
2018-04-27 04:07:59 +00:00
|
|
|
#If enable this option Haproxy-wi will be configure firewalld based on config port
|
2018-04-28 04:06:48 +00:00
|
|
|
firewall_enable = 1
|