feat(wordpress): Increase file upload size
All checks were successful
lint / check (push) Successful in 25s
build configuration / build_vault01 (push) Successful in 1m1s
build configuration / build_web02 (push) Successful in 1m1s
build configuration / build_compute01 (push) Successful in 1m9s
build configuration / build_storage01 (push) Successful in 1m35s
build configuration / build_web01 (push) Successful in 1m40s
ds-fr update / npins_update (push) Successful in 2m6s
All checks were successful
lint / check (push) Successful in 25s
build configuration / build_vault01 (push) Successful in 1m1s
build configuration / build_web02 (push) Successful in 1m1s
build configuration / build_compute01 (push) Successful in 1m9s
build configuration / build_storage01 (push) Successful in 1m35s
build configuration / build_web01 (push) Successful in 1m40s
ds-fr update / npins_update (push) Successful in 2m6s
This commit is contained in:
parent
16ea1d69ca
commit
e955f8cd35
1 changed files with 18 additions and 9 deletions
|
@ -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 = {
|
||||
|
|
Loading…
Reference in a new issue