From fa3b325faf0f3d623399fcc0ae20ecb34abf80bd Mon Sep 17 00:00:00 2001 From: Tobias Strobel Date: Sat, 15 Apr 2023 22:38:07 +0000 Subject: [PATCH] Update nextcloud.conf for Nextcloud 26 --- nextcloud/nextcloud.conf | 25 +++++++++++++++++-------- 1 file changed, 17 insertions(+), 8 deletions(-) diff --git a/nextcloud/nextcloud.conf b/nextcloud/nextcloud.conf index e0f165c..2cfd7a0 100644 --- a/nextcloud/nextcloud.conf +++ b/nextcloud/nextcloud.conf @@ -23,6 +23,8 @@ server { ssl_stapling_verify on; client_max_body_size 10G; + client_body_timeout 3600s; + client_body_buffer_size 512k; fastcgi_buffers 64 4K; gzip on; @@ -92,14 +94,20 @@ server { fastcgi_read_timeout 3600; fastcgi_send_timeout 3600; fastcgi_connect_timeout 3600; + fastcgi_max_temp_file_size 0; } - location ~ \.(?:css|js|svg|gif|png|jpg|ico)$ { + location ~ \.(?:css|js|svg|gif|png|jpg|ico|wasm|tflite|map)$ { try_files $uri /index.php$request_uri; + add_header Cache-Control "public, max-age=15778463, $asset_immutable"; expires 6M; access_log off; } + location ~ \.wasm$ { + default_type application/wasm; + } + location ~ \.woff2?$ { try_files $uri /index.php$request_uri; expires 7d; @@ -113,12 +121,13 @@ server { location / { try_files $uri $uri/ /index.php$request_uri; } - location /push/ { - proxy_pass http://notifypush-handler; - proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "Upgrade"; - proxy_set_header Host $host; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + + location ^~ /push/ { + proxy_pass http://notifypush-handler; + proxy_http_version 1.1; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection "Upgrade"; + proxy_set_header Host $host; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; } } \ No newline at end of file