bump upload maximums, fix acme
This commit is contained in:
parent
decfb482fd
commit
d467730a35
|
@ -45,6 +45,8 @@ with pkgs; let
|
||||||
make install
|
make install
|
||||||
cd ..
|
cd ..
|
||||||
sed -i 's:^extension_dir = .*:extension_dir = "'$("$out/bin/php-config" --extension-dir)'":' "$out/lib/php.ini"
|
sed -i 's:^extension_dir = .*:extension_dir = "'$("$out/bin/php-config" --extension-dir)'":' "$out/lib/php.ini"
|
||||||
|
sed -i 's:^upload_max_filesize = .*:upload_max_filesize = 200M:' "$out/lib/php.ini"
|
||||||
|
sed -i 's:^post_max_size = .*:post_max_size = 200M:' "$out/lib/php.ini"
|
||||||
echo "extension=suhosin.so" >> "$out/lib/php.ini"
|
echo "extension=suhosin.so" >> "$out/lib/php.ini"
|
||||||
echo "sendmail_path=/run/wrappers/bin/sendmail -t -i" >> "$out/lib/php.ini"
|
echo "sendmail_path=/run/wrappers/bin/sendmail -t -i" >> "$out/lib/php.ini"
|
||||||
'';
|
'';
|
||||||
|
@ -77,7 +79,7 @@ in
|
||||||
# Block access to "hidden" files and directories whose names begin with a
|
# Block access to "hidden" files and directories whose names begin with a
|
||||||
# period. This includes directories used by version control systems such
|
# period. This includes directories used by version control systems such
|
||||||
# as Subversion or Git to store control files.
|
# as Subversion or Git to store control files.
|
||||||
"~ (^|/)\\." = { return = "403"; };
|
"~ (^|/)\\.(?!well-known/)" = { return = "403"; };
|
||||||
"~ \\.php$" = {
|
"~ \\.php$" = {
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
client_max_body_size 200m;
|
client_max_body_size 200m;
|
||||||
|
|
|
@ -30,6 +30,7 @@ in {
|
||||||
Group = "nginx";
|
Group = "nginx";
|
||||||
RuntimeDirectory = "php52-fpm";
|
RuntimeDirectory = "php52-fpm";
|
||||||
LogsDirectory = "php52-fpm";
|
LogsDirectory = "php52-fpm";
|
||||||
|
Restart = "always";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue