try again

This commit is contained in:
driz 2024-01-03 13:15:26 -05:00 committed by GitHub
parent 760894a4fb
commit 6b9d8e456a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

View File

@ -36,7 +36,7 @@ server {
gzip_comp_level 4;
gzip_min_length 256;
gzip_proxied expired no-cache no-store private no_last_modified no_etag auth;
gzip_types application/atom+xml text/javascript application/javascript application/json application/ld+json application/manifest+json application/rss+xml application/vnd.geo+json application/vnd.ms-fontobject application/wasm application/x-font-ttf application/x-web-app-manifest+json application/xhtml+xml application/xml font/opentype image/bmp image/svg+xml image/x-icon text/cache-manifest text/css text/plain text/vcard text/vnd.rim.location.xloc text/vtt text/x-component text/x-cross-domain-policy;
gzip_types application/atom+xml application/javascript application/json application/ld+json application/manifest+json application/rss+xml application/vnd.geo+json application/vnd.ms-fontobject application/wasm application/x-font-ttf application/x-web-app-manifest+json application/xhtml+xml application/xml font/opentype image/bmp image/svg+xml image/x-icon text/cache-manifest text/css text/plain text/vcard text/vnd.rim.location.xloc text/vtt text/x-component text/x-cross-domain-policy;
# Pagespeed is not supported by Nextcloud, so if your server is built
# with the `ngx_pagespeed` module, uncomment this line to disable it.
@ -171,4 +171,4 @@ server {
location ~ /\.ht {
deny all;
}
}
}

View File

@ -170,6 +170,6 @@ elif [ -f /config/www/nextcloud/config/config.php ]; then
fi
#modify javascript mime type and add .mjs support
if [ ! -s /etc/nginx/mime.types ]; then
sed -i "s|application/javascript js;|text/javascript js mjs;|g" /etc/nginx/mime.types
fi
if [ -s /etc/nginx/mime.types ]; then
sed -i 's| js;|js mjs;|g' /etc/nginx/mime.types
fi