remove unused pdf file extension

This commit is contained in:
Daniel Micay 2021-07-07 04:41:08 -04:00
parent 75e800cdab
commit 3e94c41567
2 changed files with 2 additions and 2 deletions

View File

@ -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;
}

View File

@ -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 {} \;