From 6b9d8e456a9030a01f43fa7aca7db7cb83f7a447 Mon Sep 17 00:00:00 2001 From: driz <40674481+drizuid@users.noreply.github.com> Date: Wed, 3 Jan 2024 13:15:26 -0500 Subject: [PATCH] try again --- root/defaults/nginx/site-confs/default.conf.sample | 4 ++-- root/etc/s6-overlay/s6-rc.d/init-nextcloud-config/run | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/root/defaults/nginx/site-confs/default.conf.sample b/root/defaults/nginx/site-confs/default.conf.sample index 4b03337..1205b6f 100644 --- a/root/defaults/nginx/site-confs/default.conf.sample +++ b/root/defaults/nginx/site-confs/default.conf.sample @@ -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; } -} +} \ No newline at end of file diff --git a/root/etc/s6-overlay/s6-rc.d/init-nextcloud-config/run b/root/etc/s6-overlay/s6-rc.d/init-nextcloud-config/run index 58651f9..d7cd90d 100755 --- a/root/etc/s6-overlay/s6-rc.d/init-nextcloud-config/run +++ b/root/etc/s6-overlay/s6-rc.d/init-nextcloud-config/run @@ -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 \ No newline at end of file +if [ -s /etc/nginx/mime.types ]; then + sed -i 's| js;|js mjs;|g' /etc/nginx/mime.types +fi