Post

HAProxy

HAProxy is a TCP and HTTP load balancer and reverse proxy, known for handling very high connection counts with low latency. Unlike the UI-driven proxies it is configured entirely through a single text file, which makes it a good fit for layer-4 balancing, health checking and failover setups where a GUI proxy is not enough.

HAProxy
In Development
This script is currently in active development and may be unstable or incomplete. Use in production environments is not recommended.

Installation

Default install:

1
bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVED/main/ct/haproxy.sh)"
CPU: 1 cores RAM: 512 MB Disk: 4 GB OS: Debian 13

Default Credentials

UsernamePassword
adminNone

Configuration

Config file:

1
/etc/haproxy/haproxy.cfg

Notes

HAProxy has no configuration UI. The install ships only a statistics page on port 8404 plus a commented frontend/backend example - you have to write your own rules in /etc/haproxy/haproxy.cfg.
The generated password for the statistics page is in the 'stats auth' line of /etc/haproxy/haproxy.cfg.
Always validate before restarting: 'haproxy -c -f /etc/haproxy/haproxy.cfg'. A syntax error prevents the service from starting, which takes every proxied site down with it. The update path in this script does that check automatically.
For TLS, HAProxy expects certificate and key concatenated into a single PEM file. Certificates are not renewed by HAProxy itself - pair it with certbot or an ACME client.

Web Interface

Port: 8404

Source code
Loading...