bglick of Papercut Interactive
1/4/2019 - 3:18 PM

nginx directives for gzip + buffer size for EE4

These are the Media Temple nginx directives to add gzip compression and increase the buffer size for EE4

gzip on;
gzip_proxied any;
gzip_types text/plain text/xml text/css application/x-javascript text/javascript application/javascript image/svg+xml;
gzip_vary on;
gzip_comp_level 6;
gzip_disable "MSIE [1-6]\.(?!.*SV1)";
access_log off;
location ~* .(jpg|jpeg|png|gif|ico|js|svg|css)$ {
	expires 365d;

fastcgi_buffers 16 16k;
fastcgi_buffer_size 32k;

proxy_buffer_size   128k;
proxy_buffers   4 256k;
proxy_busy_buffers_size   256k;