diff --git a/nginx/nginx.conf b/nginx/nginx.conf index e37549a..f7351d8 100644 --- a/nginx/nginx.conf +++ b/nginx/nginx.conf @@ -147,7 +147,7 @@ http { add_header X-Frame-Options "SAMEORIGIN" always; add_header X-Robots-Tag "none"; - location ~ '\.(css|html|ico|js|json|map|pdf|svg|txt|wasm|xml)$' { + location ~ '\.(css|html|ico|js|json|map|svg|txt|wasm|xml)$' { gzip_static on; brotli_static on; } diff --git a/process_static b/process_static index bf7e578..1e6505d 100755 --- a/process_static +++ b/process_static @@ -11,6 +11,6 @@ cp --remove-destination webapps/element/config.json static_tmp/config.json cp nginx/nginx.conf nginx.conf.tmp -find static_tmp -regex '.+\.\(css\|html\|ico\|js\|json\|map\|pdf\|svg\|txt\|webmanifest\|xml\|wasm\)' \ +find static_tmp -regex '.+\.\(css\|html\|ico\|js\|json\|map\|svg\|txt\|webmanifest\|xml\|wasm\)' \ -exec zopfli {} \; -exec touch -r {} {}.gz \; \ -exec brotli -k {} \;