How to Accidentally Continue Writing a Web-GUI for Haproxy

It's been two years and 4 days since I wrote How to Accidentally Write a Web GUI for Haproxy, and the situation has long since changed — everything evolves and develops, and HAProxy-WI strives to keep up with this trend. Over the past two years, a lot has been accomplished, and I want to share the main changes, so: welcome under the 'cat'.

How to Accidentally Continue Writing a Web-GUI for Haproxy

1. I'll start with the most noticeable change, which is of course the design. In my opinion, everything has become more logical, clear, and user-friendly, and of course, quite attractive. The menu sections are now more structured.

2. There are now pages for each server, making it easier to understand the operations of individual services. It looks like this:

How to Accidentally Continue Writing a Web-GUI for Haproxy

3. Nginx support has been added! Unfortunately, it wasn't possible to integrate it just like HAProxy due to the more limited statistics output options in the free version of Nginx, but the main functions (editing, comparing, and versioning of configs, working with and installing services) are still available for Nginx through HAProxy-WI.

How to Accidentally Continue Writing a Web-GUI for Haproxy

4. You can now set up complete monitoring for HAProxy and Nginx! It consists of: Grafana, Prometheus, and Nginx and HAProxy exporters. Just a couple of clicks and welcome to the dashboards!

5. In the comments to the previous post, several people mentioned that using bash scripts to install services is like shooting oneself in the foot. I agree with them, and that's why 95% of installations now go through Ansible. It's really convenient and, moreover, more reliable. Only positives all around!

6. How can one avoid reinventing the wheel in the world of bicycles? The child of the bicycle, so to speak… A small three-wheeled bicycle, perhaps: the ability to easily monitor ports for availability, HTTP response, and check the response for a specific keyword. Yes, not many functions, but it’s easy to install and administer 🙂

How to Accidentally Continue Writing a Web-GUI for Haproxy

7. Very cool work with the HAProxy RunTime API. Why is it very cool? Because it's unique to us and… well, that’s about it. It may sound a bit pretentious, but I really like how it works. For example, here's how it interacts with the much-loved and often hated stick-table:

How to Accidentally Continue Writing a Web-GUI for Haproxy

That's probably all the main points. A lot of work was done on groups, roles, security, and bug detection… But you know what? Now there is a website, where there is a demo of HAProxy-WI that you can explore yourself and where the changelog is available. Just please avoid the 'Habr effect,' as I have a modest server for my site and the demo. And the link to GitHub

Source: habr.com

Buy reliable website hosting with DDoS protection, VPS VDS servers 🔥 Buy reliable website hosting with DDoS protection, VPS VDS servers | ProHoster