diff --git a/nginx/nginx.conf b/nginx/nginx.conf index 333b189c..2823e65e 100644 --- a/nginx/nginx.conf +++ b/nginx/nginx.conf @@ -1,3 +1,5 @@ +load_module modules/ngx_http_brotli_static_module.so; + user nginx; worker_processes auto; worker_rlimit_nofile 8192; @@ -108,6 +110,7 @@ http { include /etc/nginx/snippets/security-headers.conf; gzip_static on; + brotli_static on; if ($request_uri ~ ^/(.*)\.html$) { return 301 /$1; @@ -227,6 +230,7 @@ http { include /etc/nginx/snippets/security-headers.conf; add_header Cache-Control "public, max-age=31536000"; gzip_static off; + brotli_static off; } location ~ "\.(atom|json|pdf|txt|xml)$" {