2021-06-02 09:11:01 +00:00
# ![alt text](https://roxy-wi.org/inc/images/logo_menu.png "Logo")
Web interface(user-friendly web GUI, alerting, monitoring and secure) for managing HAProxy, Nginx and Keepalived servers. Leave your [feedback ](https://github.com/hap-wi/roxy-wi/issues )
2018-01-15 06:06:30 +00:00
2020-04-24 10:14:42 +00:00
# Get involved
2020-04-24 10:19:31 +00:00
* [Youtube Demo video ](https://www.youtube.com/channel/UCo0lCg24j-H4f0S9kMjp-_w )
2021-06-02 09:11:01 +00:00
* [Twitter ](https://twitter.com/roxy_wi ), subscribe!
* [Telegram Channel ](https://t.me/haproxy_wi ) about Roxy-WI, talks and questions are welcome
2020-04-24 10:14:42 +00:00
2019-08-26 17:32:34 +00:00
# Demo site
2021-06-02 09:11:01 +00:00
[Demo site ](https://demo.roxy-wi.org ) Login/password: admin/admin. Server resets every hour.
2019-08-26 17:32:34 +00:00
2021-06-02 09:11:01 +00:00
![alt text ](https://roxy-wi.org/inc/images/viewstat.png "HAProxy state page" )
2018-01-15 06:53:03 +00:00
2018-04-28 14:42:38 +00:00
# Features:
2021-06-02 09:11:01 +00:00
1. Installation and updating HAProxy, Nginx and Keepalived with Roxy-WI
2. Installation and updating Grafana, Prometheus servers with Roxy-WI
3. Installation and updating HAProxy and Nginx exporters with Roxy-WI
2021-04-24 03:48:21 +00:00
4. Server provisioning on AWS, DigitalOcean and G-Core Labs
2021-06-02 09:11:01 +00:00
5. Downloading, updating and formatting GeoIP to the acceptable format for HAProxy with Roxy-WI
2021-04-24 03:48:21 +00:00
6. Dynamic change of Maxconn, Black/white lists and backend's IP address and port with saving changes to the config file
2021-06-02 09:11:01 +00:00
7. Configuring HAProxy, Nginx and Keepalived in a jiffy with Roxy-WI
8. Viewing and analysing the status of all Frontend/backend servers via Roxy-WI from a single control panel
2021-04-24 03:48:21 +00:00
9. Enabling/disabling servers through stats page without rebooting HAProxy
2021-06-02 09:11:01 +00:00
1. Viewing/Analysing HAProxy and Nginx logs right from the Roxy-WI web interface
2021-04-24 03:48:21 +00:00
1. Creating and visualizing the HAProxy workflow from Web Ui
1. Pushing Your changes to your HAProxy, Nginx and Keepalived servers with a single click via the web interface
1. Getting info on past changes, evaluating your config files and restoring the previous stable config at any time with a single click right from Web interface
1. Adding/Editing Frontend or backend servers via the web interface with a click
1. Editing the config of HAProxy, Nginx and Keepalived and push ingchanges to All Master/Slave servers by a single click
1. Adding Multiple server to ensure the Config Sync between servers
1. Managing the ports assigned to Frontend automatically
1. Evaluating the changes of recent configs pushed to HAProxy, Nginx and Keepalived instances right from the Web UI
1. Multiple User Roles support for privileged based Viewing and editing of Config
1. Creating Groups and adding/removing servers to ensure the proper identification for your HAProxy and Nginx Clusters
2021-06-02 09:11:01 +00:00
1. Sending notifications from Roxy-WI via Telegram, Slack and via the web interface
2021-04-24 03:48:21 +00:00
1. Supporting high Availability to ensure uptime to all Master slave servers configured
1. Support of SSL (including Let's Encrypt)
2021-06-02 09:11:01 +00:00
1. Support of SSH Key for managing multiple HAProxy and Nginx Servers straight from Roxy-WI
2021-04-24 03:48:21 +00:00
1. SYN flood protect
1. Alerting about с hanges of the state of HAProxy backends
1. Alerting about the state of HAProxy and Nginx service
1. Gathering metrics for incoming connections
1. Web acceleration settings
1. Firewall for web application
1. LDAP support
1. Keep active HAProxy and Nginx services
1. Possibility to hide parts of the config with tags for users with "guest" role: "HideBlockStart" and "HideBlockEnd"
1. Mobile-ready design
1. Simple port monitoring (SMON)
2021-06-02 09:11:01 +00:00
1. Backup HAProxy, Nginx and Keepalived config files through Roxy-WI
1. Managing OpenVPN3 as a client via Roxy-WI
2021-04-24 03:48:21 +00:00
2018-01-15 06:56:57 +00:00
2021-06-02 09:11:01 +00:00
![alt text ](https://Roxy-WI.org/inc/images/roxy-wi-metrics.png "Merics" )
2018-08-04 13:58:18 +00:00
2018-01-15 06:53:03 +00:00
# Install
2019-09-04 06:26:52 +00:00
## RPM
2019-12-01 17:15:09 +00:00
2021-06-02 09:11:01 +00:00
### Read instruction on the official [site](https://roxy-wi.org/installation.py#rpm)
2019-12-27 04:31:09 +00:00
2018-04-25 12:23:05 +00:00
## Manual install
2019-10-09 12:25:55 +00:00
2021-06-02 09:11:01 +00:00
### Read instruction on the official [site](https://roxy-wi.org/installation.py#manual)
2019-12-27 04:31:09 +00:00
2018-08-22 03:12:03 +00:00
# OS support
2021-06-02 09:11:01 +00:00
Roxy-Wi was tested on EL7, EL8 and all scripts too. Debian/Ubuntu OS support at 'beta' stage, may work not correct
2018-06-05 18:20:10 +00:00
2021-06-02 09:11:01 +00:00
![alt text ](https://roxy-wi.org/inc/images/smon_dashboard.png "SMON area" )
2020-04-03 20:14:48 +00:00
2018-04-23 16:20:19 +00:00
# Database support
2018-01-26 04:08:34 +00:00
2021-06-02 09:11:01 +00:00
Default Roxy-WI use Sqlite, if you want use MySQL enable in config, and create database:
2018-04-23 16:20:19 +00:00
2018-04-30 15:39:01 +00:00
### For MySQL support:
2019-12-27 04:31:09 +00:00
2021-06-02 09:11:01 +00:00
### Read instruction on the official [site](https://roxy-wi.org/settings.py#db_settings)
2019-12-27 04:31:09 +00:00
2021-06-02 09:11:01 +00:00
![alt text ](https://roxy-wi.org/inc/images/roxy-wi-overview.webp "Overview page" )
2018-02-10 14:20:39 +00:00
2018-01-15 06:53:03 +00:00
# Settings
2020-04-03 20:14:48 +00:00
2018-04-28 07:34:45 +00:00
2021-06-02 09:11:01 +00:00
Login https://roxy-wi-server/users.py, and add: users, groups and servers. Default: admin/admin
2018-04-16 07:01:44 +00:00
2021-06-02 09:11:01 +00:00
### Read instruction on the official [site](https://roxy-wi.org/settings.py)
2020-04-03 20:14:48 +00:00
2021-06-02 09:11:01 +00:00
![alt text ](https://roxy-wi.org/inc/images/hapwi_overview.webp "HAProxy server overview page" )
2018-04-16 07:01:44 +00:00
2020-04-03 20:14:48 +00:00
2021-06-02 09:11:01 +00:00
![alt text ](https://roxy-wi.org/inc/images/add.png "Add proxy page" )
2018-01-15 06:06:30 +00:00
2018-05-01 09:00:30 +00:00
2020-04-03 20:14:48 +00:00
2018-04-28 07:34:45 +00:00
# Troubleshooting
If you have error:
```
Forbidden
2018-04-28 14:42:38 +00:00
You don't have permission to access /app/overview.py on this server.
2018-04-28 07:34:45 +00:00
```
Check owner(must be apache, or another user for apache)
If at first login you have:
```
Internal Server Error
```
Do this:
```
2018-04-28 14:42:38 +00:00
$ cd /var/www/haproxy-wi/app
2018-09-23 09:16:16 +00:00
$ ./create_db.py
2018-04-28 07:34:45 +00:00
```
2018-05-01 06:28:19 +00:00
and check executeble py files
If you see plain text, check section "Directory" in httpd conf