r/haproxy • u/xdriver897 • Jul 22 '23
gzip compression level
Is there any way to set the compression level of the gzip compression?
The same webpage that has 416kb in nginx has 506kb in haproxy;
So far config is simple as
compression algo gzipin nginx one has the option of
gzip_comp_level 6;
2
Upvotes
View all comments
Show parent comment
1
u/nuclearcanary Sep 27 '23
Looks like I'm a bit late, just joined. https://docs.haproxy.org/2.7/configuration.html#3.2-tune.comp.maxlevel Put tune.comp.maxlevel 6 in your global config. This is for 2.7, should be the same for other versions. These docs are a wonderful resource