haproxy-wi/README.md

64 lines
1.7 KiB
Markdown
Raw Normal View History

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-02-10 14:20:39 +00:00
![alt text](image/8.jpeg "Show config page")
2018-01-15 06:53:03 +00:00
2018-01-15 06:56:57 +00:00
# Capabilities:
1. View statistics of all servers in one place
2018-02-06 07:15:05 +00:00
2. Server and service statsus in one place
3. View logs of all servers in one place
2018-02-15 04:58:08 +00:00
4. Map frontend, backends and servers
5. Disabling / enabling the backend servers without reboot (after reboot, will work as specified in the config), viewing server state data
6. Browsing Configs
7. Add sections: listen, frontend, backend from web interface
8. Editing configs
9. Rollback to previous versions of the config
10. Comparing versions of configs
11. Users roles: admin, editor, viewer
12. 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
$ 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-02-10 14:20:39 +00:00
![alt text](image/7.jpeg "Overview page")
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
# 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
# Deb support
2018-01-15 06:06:30 +00:00
Sorry, but not use, because adapt yourself
2018-03-21 10:11:34 +00:00
# Further development
Offer your ideas and wishes, ask questions. All this is [welcomed](https://github.com/Aidaho12/haproxy-wi/issues)