mirror of
https://github.com/linuxserver/docker-nextcloud.git
synced 2026-04-27 00:00:25 +08:00
try again
This commit is contained in:
parent
760894a4fb
commit
6b9d8e456a
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user