From 37164d381ed9a8ccb2fe2671152a19ebbced5827 Mon Sep 17 00:00:00 2001 From: elkmaennchen Date: Thu, 28 Mar 2024 18:57:39 +0100 Subject: [PATCH] Update to 20.0.3 + optimize user experience --- nextcloud_fpm_full/Dockerfile | 2 +- web/nginx.conf | 25 +++++++++++++------------ 2 files changed, 14 insertions(+), 13 deletions(-) diff --git a/nextcloud_fpm_full/Dockerfile b/nextcloud_fpm_full/Dockerfile index bd57ff4..cee1b9a 100644 --- a/nextcloud_fpm_full/Dockerfile +++ b/nextcloud_fpm_full/Dockerfile @@ -1,4 +1,4 @@ -FROM nextcloud:28.0.2-fpm-alpine +FROM nextcloud:28.0.3-fpm-alpine RUN set -ex; \ \ diff --git a/web/nginx.conf b/web/nginx.conf index 32c4b2d..e212c3c 100644 --- a/web/nginx.conf +++ b/web/nginx.conf @@ -53,7 +53,7 @@ http { add_header X-Download-Options "noopen" always; add_header X-Frame-Options "SAMEORIGIN" always; add_header X-Permitted-Cross-Domain-Policies "none" always; - add_header X-Robots-Tag "none" always; + add_header X-Robots-Tag "none" always; add_header X-XSS-Protection "1; mode=block" always; # Remove X-Powered-By, which is an information leak @@ -85,17 +85,18 @@ http { return 301 $scheme://$host:$server_port/remote.php/dav; } - # set max upload size - client_max_body_size 15G; - fastcgi_buffers 64 4K; - - # Enable gzip but do not remove ETag headers - gzip on; - gzip_vary on; - 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 application/javascript application/json application/ld+json application/manifest+json application/rss+xml application/vnd.geo+json application/vnd.ms-fontobject 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; + # set max upload size and increase upload timeout: + client_max_body_size 4G; + client_body_timeout 300s; + fastcgi_buffers 64 4K; + + # Enable gzip but do not remove ETag headers + gzip on; + gzip_vary on; + 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; # Uncomment if your server is build with the ngx_pagespeed module # This module is currently not supported.