mirror of https://github.com/Aidaho12/haproxy-wi
parent
329ed1beab
commit
8734ac10aa
|
@ -69,7 +69,7 @@ For Apache do virtualhost with cgi-bin. Like this:
|
||||||
|
|
||||||
Default Haproxy-WI use Sqlite, if you want use MySQL enable in config, and create database:
|
Default Haproxy-WI use Sqlite, if you want use MySQL enable in config, and create database:
|
||||||
|
|
||||||
## For MySQL support:
|
### For MySQL support:
|
||||||
```
|
```
|
||||||
MariaDB [(none)]> create user 'haproxy-wi'@'%';
|
MariaDB [(none)]> create user 'haproxy-wi'@'%';
|
||||||
MariaDB [(none)]> create database haproxywi;
|
MariaDB [(none)]> create database haproxywi;
|
||||||
|
@ -82,7 +82,7 @@ MariaDB [(none)]> grant all on haproxywi.* to 'haproxy-wi'@'localhost' IDENTIFIE
|
||||||
```
|
```
|
||||||
Edit $HOME_HAPROXY-WI/app/haproxy-webintarface.config with your env
|
Edit $HOME_HAPROXY-WI/app/haproxy-webintarface.config with your env
|
||||||
```
|
```
|
||||||
## Copy ssh key on all HAproxy servers, upload private key via Haproxy-WI in Admin area(Tab "SSH key" in "Servers" page), or sets root password in app/haproxy-webintarface.config.
|
Copy ssh key on all HAproxy servers
|
||||||
|
|
||||||
Login http://haproxy-wi-server/users.py, and add: users, groups and servers. Default: admin/admin
|
Login http://haproxy-wi-server/users.py, and add: users, groups and servers. Default: admin/admin
|
||||||
|
|
||||||
|
|
|
@ -67,8 +67,8 @@ cat << EOF > /etc/rsyslog.d/haproxy.conf
|
||||||
local2.* /var/log/haproxy.log
|
local2.* /var/log/haproxy.log
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
sed -i "s/#$ModLoad imudp/$ModLoad imudp/g" /etc/rsyslog.conf
|
sed -i 's/#$UDPServerRun 514/$UDPServerRun 514/g' /etc/rsyslog.conf
|
||||||
sed -i "s/#$UDPServerRun/$UDPServerRun /g" /etc/rsyslog.conf
|
sed -i 's/#$ModLoad imudp/$ModLoad imudp/g' /etc/rsyslog.conf
|
||||||
|
|
||||||
firewall-cmd --zone=public --add-port=8085/tcp --permanent
|
firewall-cmd --zone=public --add-port=8085/tcp --permanent
|
||||||
firewall-cmd --reload
|
firewall-cmd --reload
|
||||||
|
|
Loading…
Reference in New Issue