summaryrefslogtreecommitdiff
path: root/data/templates
diff options
context:
space:
mode:
authorAlex W <embezzle.dev@proton.me>2025-01-27 20:57:27 +0000
committerGitHub <noreply@github.com>2025-01-27 22:57:27 +0200
commit85be7579f4e93f9da06b5e8775b5296be953d422 (patch)
tree795902fa16a0b7fb284834d88f4c302a4448ac19 /data/templates
parentd50cdfee916c6d0b5c60c03d589f9292954b6688 (diff)
downloadvyos-1x-85be7579f4e93f9da06b5e8775b5296be953d422.tar.gz
vyos-1x-85be7579f4e93f9da06b5e8775b5296be953d422.zip
haproxy: T7081: Support HTTP compression (#4314)
Diffstat (limited to 'data/templates')
-rw-r--r--data/templates/load-balancing/haproxy.cfg.j25
1 files changed, 5 insertions, 0 deletions
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 }}