forked from DGNum/infrastructure
feat(wordpress): Increase file upload size
This commit is contained in:
parent
16ea1d69ca
commit
e955f8cd35
1 changed files with 18 additions and 9 deletions
|
@ -25,16 +25,25 @@ let
|
||||||
i,
|
i,
|
||||||
}:
|
}:
|
||||||
{
|
{
|
||||||
services.wordpress = {
|
services = {
|
||||||
webserver = "nginx";
|
wordpress = {
|
||||||
sites.${name} = value;
|
webserver = "nginx";
|
||||||
};
|
sites.${name} = value;
|
||||||
|
};
|
||||||
|
|
||||||
services.nginx.virtualHosts.${name} = {
|
nginx.virtualHosts.${name} = {
|
||||||
onlySSL = true;
|
onlySSL = true;
|
||||||
sslCertificate = "${certs.${name}.directory}/fullchain.pem";
|
sslCertificate = "${certs.${name}.directory}/fullchain.pem";
|
||||||
sslCertificateKey = "${certs.${name}.directory}/key.pem";
|
sslCertificateKey = "${certs.${name}.directory}/key.pem";
|
||||||
sslTrustedCertificate = "${certs.${name}.directory}/chain.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 = {
|
networking = {
|
||||||
|
|
Loading…
Reference in a new issue