add brotli static configuration
This commit is contained in:
parent
87e5622def
commit
997f062ac6
@ -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)$" {
|
||||
|
Loading…
x
Reference in New Issue
Block a user