2018-04-16 07:01:44 +00:00
|
|
|
#Meet Haproxy-wi 2.0! Now with DB and Admin web interface! Life has become easier, life has become more cheerful!
|
|
|
|
|
2018-01-19 15:45:06 +00:00
|
|
|
# Haproxy web interface
|
2018-03-31 17:45:32 +00:00
|
|
|
A simple web interface(user-frendly web GUI) for managing Haproxy servers. Leave your [feedback](https://github.com/Aidaho12/haproxy-wi/issues)
|
2018-01-15 06:06:30 +00:00
|
|
|
|
2018-02-10 14:20:39 +00:00
|
|
|

|
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
|
2018-04-04 08:44:45 +00:00
|
|
|
5. Runtime API with the ability to save changes (need install socat on all haproxy servers)
|
2018-02-15 04:58:08 +00:00
|
|
|
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-04-05 03:34:17 +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-31 11:29:45 +00:00
|
|
|
|
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-04-05 03:34:17 +00:00
|
|
|
|
|
|
|
For Apache just do virtualhost with cgi-bin.
|
2018-01-26 04:08:34 +00:00
|
|
|
|
2018-02-10 14:20:39 +00:00
|
|
|

|
|
|
|
|
2018-01-15 06:53:03 +00:00
|
|
|
# Settings
|
2018-04-16 07:01:44 +00:00
|
|
|
```
|
|
|
|
cd $HOME_HAPROXY-WI/cgi-bin/
|
|
|
|
chmod +x *.py
|
|
|
|
```
|
|
|
|
|
|
|
|
Run create_db.py for DB createing
|
2018-04-05 03:34:17 +00:00
|
|
|
|
|
|
|
Edit $HOME_HAPROXY-WI/cgi-bin/haproxy-webintarface.config with your env
|
2018-01-15 06:06:30 +00:00
|
|
|
|
2018-04-16 07:01:44 +00:00
|
|
|
Login http://haproxy-wi-server/users.py, and add: users, groups and servers. Default: admin/admin
|
|
|
|
|
|
|
|

|
|
|
|
|
2018-04-04 08:44:45 +00:00
|
|
|
Copy ssh key on all HAproxy servers
|
2018-01-15 06:06:30 +00:00
|
|
|
|
2018-04-04 08:44:45 +00:00
|
|
|
For Runtime API enable state file on HAproxt servers and need install socat on all haproxy servers:
|
2018-01-15 07:01:46 +00:00
|
|
|
```
|
2018-04-04 08:44:45 +00:00
|
|
|
global
|
|
|
|
server-state-file /etc/haproxy/haproxy/haproxy.state
|
|
|
|
defaults
|
|
|
|
load-server-state-from-file global
|
2018-01-15 07:01:46 +00:00
|
|
|
```
|
2018-01-15 06:53:03 +00:00
|
|
|

|
2018-01-15 06:06:30 +00:00
|
|
|
|
2018-04-05 03:34:17 +00:00
|
|
|
# Start and autostart if service
|
2018-01-29 05:13:18 +00:00
|
|
|
```
|
|
|
|
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
|
2018-03-21 10:11:34 +00:00
|
|
|
|
2018-03-21 10:12:09 +00:00
|
|
|
# Further development and support
|
2018-03-21 10:11:34 +00:00
|
|
|
|
|
|
|
Offer your ideas and wishes, ask questions. All this is [welcomed](https://github.com/Aidaho12/haproxy-wi/issues)
|
|
|
|
|
|
|
|
|