mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2024-12-22 07:17:05 +00:00
enable large file uploads in nginx
This commit is contained in:
parent
54fe92615b
commit
7f01146c3d
@ -26,13 +26,12 @@ server {
|
||||
ssl_certificate_key $SSL_KEY;
|
||||
include /etc/nginx/nginx-ssl.conf;
|
||||
|
||||
# Expose this directory as static files.
|
||||
# TODO: This is bad, we shouldnt hack it like this.
|
||||
root /usr/local/lib/owncloud;;
|
||||
index index.html index.htm;
|
||||
|
||||
# ownCloud configuration
|
||||
client_max_body_size 10G; # set max upload size
|
||||
client_max_body_size 16G; # set max upload size
|
||||
fastcgi_buffers 64 4K;
|
||||
|
||||
rewrite ^/caldav(.*)$ /remote.php/caldav$1 redirect;
|
||||
@ -69,6 +68,11 @@ server {
|
||||
location ~ ^(.+?\.php)(/.*)?$ {
|
||||
try_files $1 = 404;
|
||||
|
||||
# PHP specific configuration to deal with large file uploads
|
||||
fastcgi_param PHP_VALUE "upload_max_filesize = 16G";
|
||||
fastcgi_param PHP_VALUE "post_max_size = 16G";
|
||||
fastcgi_param PHP_VALUE "output_buffering = 16384";
|
||||
|
||||
include fastcgi_params;
|
||||
fastcgi_param SCRIPT_FILENAME $document_root$1;
|
||||
fastcgi_param PATH_INFO $2;
|
||||
|
Loading…
Reference in New Issue
Block a user