l 2 websites: set uploadsize limit to 100m

This commit is contained in:
lassulus 2016-09-08 21:06:50 +02:00
parent b02eec11b6
commit 88dd0cbc7d
2 changed files with 4 additions and 0 deletions

View File

@ -132,6 +132,9 @@ in {
extension=${pkgs.phpPackages.apcu}/lib/php/extensions/apcu.so
sendmail_path = "${sendmail} -t -i"
always_populate_raw_post_data = -1
upload_max_filesize = 100M
post_max_size = 100M
file_uploads = on
'';
} ''
cat ${pkgs.php}/etc/php-recommended.ini > $out

View File

@ -188,6 +188,7 @@ rec {
error_log /tmp/nginx_err.log;
error_page 404 /404.html;
error_page 500 502 503 504 /50x.html;
client_max_body_size 100m;
'';
locations = [
(nameValuePair "/" ''