HAProxy community

GZIP compression on SSL Frontend


I have an issue with enabling GZIP compression on an SSL frontend, while on plain HTTP works perfectly.
The error I’m getting is:
Apr 5 08:19:50 HAProxy2 haproxy[7649]: [ALERT] 095/081950 (7649) : config: frontend 'www-https': require an explicit filter declaration to use HTTP compression

The www-https frontend config is:

frontend www-https
bind ssl crt /etc/haproxy/ssl/bundle.pem
http-request add-header X-Forwarded-Proto https
default_backend pool0
mode http
maxconn 400000
compression algo gzip
compression type text/css text/html text/javascript application/javascript text/plain text/xml application/json image/svg+xml
# Mirror traffic via SPOA-mirror
filter spoe engine traffic-mirror config /etc/haproxy/mirror.cfg

What filter should I set in order to get this working? The documentation doesn’t say anything about a filter, as far as I’ve seen.

Thank you.

It seems that canceling the SPOA mirror will allow compression. Anyone got any idea why it messes up?

Thank you.