From 85be7579f4e93f9da06b5e8775b5296be953d422 Mon Sep 17 00:00:00 2001 From: Alex W Date: Mon, 27 Jan 2025 20:57:27 +0000 Subject: haproxy: T7081: Support HTTP compression (#4314) --- data/templates/load-balancing/haproxy.cfg.j2 | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'data') diff --git a/data/templates/load-balancing/haproxy.cfg.j2 b/data/templates/load-balancing/haproxy.cfg.j2 index 786ebfb21..c98b739e2 100644 --- a/data/templates/load-balancing/haproxy.cfg.j2 +++ b/data/templates/load-balancing/haproxy.cfg.j2 @@ -93,6 +93,11 @@ frontend {{ front }} http-response set-header {{ header }} '{{ header_config['value'] }}' {% endfor %} {% endif %} +{% if front_config.http_compression is vyos_defined %} + filter compression + compression algo {{ front_config.http_compression.algorithm }} + compression type {{ front_config.http_compression.mime_type | join(' ') }} +{% endif %} {% if front_config.rule is vyos_defined %} {% for rule, rule_config in front_config.rule.items() %} # rule {{ rule }} -- cgit v1.2.3