1
0
Fork 0
No description
Find a file
Joao Gilberto Magalhaes 50ffb4fe16 Add environment variable documentation for all plugins, reorganize plugin files for consistency
- Introduced environment variable support in documentation for Cloudflare, Cleanup, Deny Pages, IP Whitelist, JWT Validator, and FastCGI plugins.
- Updated plugin files with consistent headings, examples, and tables for easier configuration reference.
- Adjusted `README.md` and `plugins.md` to reflect updated plugin paths and environment variable usage.
2025-12-02 11:47:19 -05:00
.github Update build.yml 2024-11-11 13:39:45 -06:00
.run Upload PyCharm default tests 2024-11-12 20:35:56 -06:00
.vscode Fix errors in the test 2023-02-08 19:27:50 -06:00
build Update Dockerfile. 2025-08-24 18:12:24 -04:00
deploy [skip ci] Update from 4.5.0 to 4.6.0 2025-08-24 23:14:07 +00:00
docs Add environment variable documentation for all plugins, reorganize plugin files for consistency 2025-12-02 11:47:19 -05:00
examples Add FastCGI Plugin for PHP-FPM support with examples, tests, and documentation 2025-12-01 13:04:32 -05:00
helm/easyhaproxy [skip ci] Update from 4.5.0 to 4.6.0 2025-08-24 23:14:07 +00:00
src Add use_builtin_ips support and reorganize plugin documentation 2025-12-01 18:00:52 -05:00
.dockerignore Minor changes in github actions 2022-08-26 16:05:18 -05:00
.gitignore Add ClusterIP and NodePort deployment 2022-08-29 18:08:15 -05:00
.gitpod.yml Refactoring to Python 2022-08-24 01:00:26 +00:00
build-multiarch.sh Code reorganization 2022-08-26 15:56:13 -05:00
CONTRIBUTING.md Update CONTRIBUTING.md 2024-06-04 21:31:19 -05:00
LICENSE Initial Commit 2018-09-16 21:03:17 -05:00
Makefile Code reorganization 2022-08-26 15:56:13 -05:00
README.md Add environment variable documentation for all plugins, reorganize plugin files for consistency 2025-12-02 11:47:19 -05:00
setup.py Refactor: tried to refactor code 2020-06-05 16:46:40 +02:00

EasyHAProxy

Opensource ByJG Build Status GitHub source GitHub license GitHub release Helm Version

EasyHAProxy

Service discovery for HAProxy

EasyHAProxy dynamically creates the haproxy.cfg based on metadata collected from your workloads (Docker labels, Swarm service labels, or Kubernetes ingress annotations).

EasyHAProxy can detect and configure HAProxy automatically on the following platforms:

  • Docker
  • Docker Swarm
  • Kubernetes
  • Static YAML definitions (EASYHAPROXY_DISCOVER=static)

Who is using?

EasyHAProxy is part of some projects:

  • Dokku
  • MicroK8s
  • DigitalOcean Marketplace

See detailed instructions on how to install below.

EasyHAProxy Mission

Easy to set up and low configuration to numerous features.

Features

EasyHAProxy will discover services based on Docker (or Swarm) labels and Kubernetes ingress annotations, then dynamically build the haproxy.cfg. Below, EasyHAProxy main features:

  • Support Automatic Certificate Management Environment (ACME) protocol compatible with Let's Encrypt and other CAs.
  • Set your custom SSL certificates
  • Balance traffic between multiple replicas
  • Set SSL policies (strict, default, loose) via EASYHAPROXY_SSL_MODE.
  • Set up HAProxy to listen to TCP.
  • Add redirects.
  • Enable/disable Stats on port 1936 with a custom password.
  • Enable/disable custom errors.

Also, it is possible to set up HAProxy from a simple Yaml file instead of creating haproxy.cfg file.

How Does It Work?

You don't need to change your current infrastructure and don't need to learn the HAProxy configuration.

The steps are:

  • Run the EasyHAProxy container;
  • Add some labels to the containers you want to be parsed by EasyHAProxy (see detailed instructions below);
  • EasyHAProxy will automatically detect the containers, set up, and reload the HAProxy configurations for you without downtime.

Detailed Instructions

For detailed instructions on how to use EasyHAProxy, follow the instructions for the platform you want to use:

Kubernetes Docker Swarm Docker Static

Or you can install using tools:

Helm MicroK8s Dokku DigitalOcean

Special Topics

If you already set up the EasyHAProxy, is time to go deeper:

Configuration Reference

Detailed configuration guides for advanced setups:

See EasyHAProxy in action

Click on the image to see the videos (use HD for better visualization)

Docker In Action Docker and Letsencrypt K8s In Action K8s and Letsencrypt Static Configuration TCP Mode

Here is the code applied in the examples above.


Open source ByJG