mirror of
https://github.com/GrapheneOS/matrix.grapheneos.org.git
synced 2024-12-18 12:24:37 -05:00
remove unused pdf file extension
This commit is contained in:
parent
75e800cdab
commit
3e94c41567
@ -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;
|
||||
}
|
||||
|
@ -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 {} \;
|
||||
|
Loading…
Reference in New Issue
Block a user