publik-common/doc/nginx/snippets/gzip-statics.conf

20 lines
347 B
Plaintext

# to be used in location /static :
#
# location ~ ^/static/(.+)$ {
# root /;
# include snippets/gzip-statics.conf;
# try_files ... =404;
# }
#
gzip on;
gzip_disable "msie6";
gzip_vary on;
gzip_proxied any;
gzip_comp_level 6;
gzip_buffers 16 8k;
gzip_http_version 1.1;
gzip_types text/css application/javascript;