Skip to content

Commit

Permalink
Improve Upload speed with nginx
Browse files Browse the repository at this point in the history
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
  • Loading branch information
CarlSchwan committed May 18, 2022
1 parent 15ead54 commit df32fd2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions admin_manual/installation/nginx-root.conf.sample
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ server {
# with the `ngx_pagespeed` module, uncomment this line to disable it.
#pagespeed off;

client_body_buffer_size 512k;

# HTTP response headers borrowed from Nextcloud `.htaccess`
add_header Referrer-Policy "no-referrer" always;
add_header X-Content-Type-Options "nosniff" always;
Expand Down
2 changes: 2 additions & 0 deletions admin_manual/installation/nginx-subdir.conf.sample
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@ server {
# with the `ngx_pagespeed` module, uncomment this line to disable it.
#pagespeed off;

client_body_buffer_size 512k;

# HTTP response headers borrowed from Nextcloud `.htaccess`
add_header Referrer-Policy "no-referrer" always;
add_header X-Content-Type-Options "nosniff" always;
Expand Down

0 comments on commit df32fd2

Please sign in to comment.