Increase upload limits for pod-cloud

This commit is contained in:
Wojciech Kozlowski 2022-11-04 11:02:04 +01:00
parent 3fb47b587d
commit af296a1e3a
2 changed files with 8 additions and 2 deletions

View File

@ -20,6 +20,12 @@ server {
ssl_certificate_key /etc/letsencrypt/live/cloud.wojciechkozlowski.eu/privkey.pem;
ssl_trusted_certificate /etc/letsencrypt/live/cloud.wojciechkozlowski.eu/chain.pem;
# Values copied from
# https://docs.nextcloud.com/server/latest/admin_manual/installation/nginx.html and adjusted to
# 16G.
client_max_body_size 16G;
client_body_timeout 3600s;
# Redirect rules copied from
# https://docs.nextcloud.com/server/latest/admin_manual/installation/nginx.html.
location ^~ /.well-known {

View File

@ -49,8 +49,8 @@ http {
#add_header Strict-Transport-Security "max-age=15768000; includeSubDomains; preload;" always;
# set max upload size and increase upload timeout:
client_max_body_size 512M;
client_body_timeout 300s;
client_max_body_size 16G;
client_body_timeout 3600s;
fastcgi_buffers 64 4K;
# Enable gzip but do not remove ETag headers