2018-01-19 15:45:06 +00:00
|
|
|
# Haproxy web interface
|
2018-01-17 16:28:07 +00:00
|
|
|
A simple web interface(user-frendly web GUI) for managing Haproxy servers
|
2018-01-15 06:06:30 +00:00
|
|
|
|
2018-01-15 06:53:03 +00:00
|
|
|
![alt text](image/5.jpeg "Edit config page")
|
|
|
|
|
2018-01-15 06:56:57 +00:00
|
|
|
# Capabilities:
|
|
|
|
1. View statistics of all servers in one place
|
|
|
|
2. View logs of all servers in one place
|
|
|
|
3. Disabling / enabling the backend servers without reboot (after reboot, will work as specified in the config), viewing server state data
|
|
|
|
4. Browsing Configs
|
2018-01-25 08:40:44 +00:00
|
|
|
5. Add sections: listen, frontend, backend from web interface
|
|
|
|
6. Editing configs
|
|
|
|
7. Rollback to previous versions of the config
|
|
|
|
8. Comparing versions of configs
|
|
|
|
9. Users roles: admin, viewer
|
2018-01-29 05:13:18 +00:00
|
|
|
10. Telegram notification
|
2018-01-15 06:56:57 +00:00
|
|
|
|
2018-01-15 06:53:03 +00:00
|
|
|
# Install
|
2018-01-31 11:29:45 +00:00
|
|
|
Can be used as a service, or via fastaci apache + fastCGI(recommend, because it works faster), how to use the service:
|
|
|
|
|
2018-01-15 06:06:30 +00:00
|
|
|
For install just dowload archive and untar somewhere:
|
2018-01-15 07:01:46 +00:00
|
|
|
```
|
2018-01-26 04:08:34 +00:00
|
|
|
$ cd /opt
|
|
|
|
$ unzip master.zip
|
2018-01-29 05:13:18 +00:00
|
|
|
$ mv haproxy-wi-master/ haproxy-wi
|
|
|
|
$ cd /opt/haproxy-wi
|
|
|
|
$ chmod +x install.sh
|
2018-01-29 05:17:09 +00:00
|
|
|
$ sudo ./install.sh
|
2018-01-15 07:01:46 +00:00
|
|
|
```
|
2018-01-26 04:08:34 +00:00
|
|
|
Edit listserv.py, add your HAproxy servers.
|
|
|
|
|
2018-01-15 06:53:03 +00:00
|
|
|
# Settings
|
2018-01-15 06:06:30 +00:00
|
|
|
edit haproxy-webintarface.config with your env
|
|
|
|
|
|
|
|
copy ssh key on all HAproxy servers
|
|
|
|
|
|
|
|
For online edit HAproxy settings enable socket on HAproxt servers:
|
2018-01-15 07:01:46 +00:00
|
|
|
```
|
2018-01-15 06:06:30 +00:00
|
|
|
global
|
2018-01-15 06:53:03 +00:00
|
|
|
log 172.28.0.5 local2 debug err
|
2018-01-15 06:06:30 +00:00
|
|
|
stats socket *:1999 level admin
|
2018-01-15 07:01:46 +00:00
|
|
|
```
|
2018-01-15 06:53:03 +00:00
|
|
|
![alt text](image/4.jpeg "View logs page")
|
2018-01-15 06:06:30 +00:00
|
|
|
|
2018-01-29 05:13:18 +00:00
|
|
|
# Start and auto start
|
|
|
|
```
|
|
|
|
systemctl enable haproxy-wi.service
|
|
|
|
systemctl start haproxy-wi.service
|
2018-01-15 07:01:46 +00:00
|
|
|
```
|
2018-01-15 06:06:30 +00:00
|
|
|
|
2018-01-29 05:13:18 +00:00
|
|
|
# Deb support
|
2018-01-15 06:06:30 +00:00
|
|
|
|
2018-01-29 05:13:18 +00:00
|
|
|
Sorry, but not use, because adapt yourself
|