diff options
author | Alex W <embezzle.dev@proton.me> | 2025-01-27 20:57:27 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-01-27 22:57:27 +0200 |
commit | 85be7579f4e93f9da06b5e8775b5296be953d422 (patch) | |
tree | 795902fa16a0b7fb284834d88f4c302a4448ac19 /data/templates | |
parent | d50cdfee916c6d0b5c60c03d589f9292954b6688 (diff) | |
download | vyos-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.j2 | 5 |
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 }} |