feat(wordpress): Increase file upload size

This commit is contained in:
Tom Hubrecht 2024-02-06 17:04:16 +01:00
parent 16ea1d69ca
commit e955f8cd35

View file

@ -25,18 +25,27 @@ let
i,
}:
{
services.wordpress = {
services = {
wordpress = {
webserver = "nginx";
sites.${name} = value;
};
services.nginx.virtualHosts.${name} = {
nginx.virtualHosts.${name} = {
onlySSL = true;
sslCertificate = "${certs.${name}.directory}/fullchain.pem";
sslCertificateKey = "${certs.${name}.directory}/key.pem";
sslTrustedCertificate = "${certs.${name}.directory}/chain.pem";
};
# Increase the max post size
phpfpm.pools."wordpress-${name}".phpOptions = ''
post_max_size = 64M;
upload_max_filesize = 64M;
memory_limit = 128M;
'';
};
networking = {
hostName = mkName name;
hosts.${mkLocal i} = [ name ];