From 997f062ac65c03ed71804f1f72e955c5e3f09703 Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Sun, 14 Feb 2021 00:45:30 -0500 Subject: [PATCH] add brotli static configuration --- nginx/nginx.conf | 4 ++++ 1 file changed, 4 insertions(+) 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)$" {