1
0
Fork 0
Commit graph

24 commits

Author SHA1 Message Date
Joao Gilberto Magalhaes
3fd0fe0d46 Update plugin paths from /etc/haproxy to /etc/easyhaproxy across tests, configs, and documentation 2026-02-18 16:35:57 -05:00
Joao Gilberto Magalhaes
491f4a8c09 Add support for CORS in HAProxy stats dashboard
- Introduced `HAPROXY_STATS_CORS_ORIGIN` environment variable for enabling CORS in HAProxy stats.
- Updated HAProxy configuration template to handle CORS preflight and response headers.
- Added tests for static configuration mode with CORS enabled.
- Updated documentation to include new CORS configuration details and examples.
2026-02-16 20:54:27 -05:00
Joao Gilberto Magalhaes
045dd3817e Migrate configuration paths to /etc/easyhaproxy and improve health check support in E2E tests
- Refactored HAProxy configuration files, templates, and paths to use `/etc/easyhaproxy` instead of `/etc/haproxy`.
- Updated Dockerfile to generate DH params and placeholder certificates in the new configuration directory.
- Added health check support with timeout to `DockerComposeFixture` in E2E test utilities.
- Adjusted tests, templates, and plugins to use the new `Consts`-based configuration paths.
- Introduced pytest fixtures for environment isolation and temporary directory management.
2026-02-15 14:32:16 -05:00
Joao Gilberto Magalhaes
97845b8a52 Refactor E2E tests and configuration format
- Replaced `easymapping` configuration with `containers` for better maintainability and clarity.
- Introduced `DockerComposeFixture` class in `utils.py` to manage Docker Compose lifecycle and smart build strategy.
- Enhanced YAML-to-environment variable conversion in `ContainerEnv` for dynamic configuration support.
- Updated HAProxy configurations and test fixtures to reflect the new format.
- Improved test coverage for YAML parsing, environment variable handling, and HAProxy config generation.
2026-02-13 12:01:47 -05:00
Joao Gilberto Magalhaes
55d0d1a105 Modernizing PyThon Projec 2026-01-22 20:14:22 -05:00
Joao M
7d959f892a Refactoring to Python 2022-08-24 01:00:26 +00:00
Joao M
78e9ae3d08 Documentation Update 2022-08-18 17:37:37 +00:00
Joao M
fee0126442 Fixed 2022-08-17 22:04:10 +00:00
Joao M
ad8aef16a2 Fix SSL 2022-08-17 21:55:25 +00:00
Joao M
1a6472a5b3 Fix loop in redirect_ssl 2022-08-17 02:28:24 +00:00
Joao M
3e561e557f Change SSL Certs folder 2022-08-16 20:07:57 +00:00
Joao M
b363abea8c Add redirect-ssl and different ssl_modes 2022-08-16 16:39:51 +00:00
Joao M
d0f91c6718 Multiple Hosts 2022-08-15 20:20:18 +00:00
Joao M
c62db6e573 Change redirect label to JSON 2022-08-15 19:39:25 +00:00
Joao M
10ed037d94 First part letsencrypt 2022-08-15 00:34:45 +00:00
Joao M
4a1c36d003 Find definitions dynamically 2022-08-12 14:49:48 +00:00
Joao M
c62834c52b Inverted order of the definitions 2022-08-12 02:01:11 +00:00
Joao M
c6bef882ca Add unit tests 2022-08-11 22:18:28 +00:00
Joao Gilberto Magalhaes
50af051a33 Added tests for multi-container 2022-03-27 18:52:52 -05:00
Joao Gilberto
13c4ebfd2d Reduce the label name 2021-08-11 10:54:17 -05:00
Joao Gilberto Magalhães
74413882fa Fix SSL Parsing; Changed all tests; 2020-06-07 22:31:00 -05:00
Joao Gilberto Magalhães
ddfa2e34ae Minor adjustment in Static unittest. 2020-06-07 21:36:02 -05:00
till
75deebc783
Update: more tests and ssl health-check
- restructure more tests for the "mode http"
 - add tests tests for "mode tcp"
 - add the ability to ssl health check on a backend (in mode tcp)
2020-06-05 16:50:04 +02:00
till
08de132450
Refactor: tried to refactor code
- move scripts to assets/scripts (and updated build)
 - put most logic into HaproxyConfigGenerator
 - created DockerLabelHandler for all label handling from previous code
 - added unit tests and fixtures to cover HaproxyConfigGenerator and DockerLabelHandler
 - added a Makefile with build (for docker build) and test targets
2020-06-05 16:46:40 +02:00