diff --git a/machines/web01/wordpress/module.nix b/machines/web01/wordpress/module.nix index 92a7029..452f0f6 100644 --- a/machines/web01/wordpress/module.nix +++ b/machines/web01/wordpress/module.nix @@ -25,16 +25,25 @@ let i, }: { - services.wordpress = { - webserver = "nginx"; - sites.${name} = value; - }; + services = { + wordpress = { + webserver = "nginx"; + sites.${name} = value; + }; - services.nginx.virtualHosts.${name} = { - onlySSL = true; - sslCertificate = "${certs.${name}.directory}/fullchain.pem"; - sslCertificateKey = "${certs.${name}.directory}/key.pem"; - sslTrustedCertificate = "${certs.${name}.directory}/chain.pem"; + 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 = {