set upload limits
This commit is contained in:
parent
ec956c1ca8
commit
757be61f59
6 changed files with 34 additions and 11 deletions
|
|
@ -13,6 +13,7 @@ let
|
|||
appDir = "${backendPackage}/share/php/rabbi-gerzi-backend";
|
||||
phpPackage = backendPackage.passthru.php;
|
||||
poolName = "rabbi-gerzi";
|
||||
uploadLimits = import ./upload-limits.nix;
|
||||
storagePath = "${cfg.stateDir}/storage";
|
||||
cachePath = "${cfg.cacheDir}/bootstrap-cache";
|
||||
setupService = "rabbi-gerzi-setup";
|
||||
|
|
@ -239,6 +240,7 @@ in
|
|||
services.phpfpm.pools.${poolName} = {
|
||||
inherit (cfg) user group;
|
||||
inherit phpPackage;
|
||||
phpOptions = uploadLimits.phpOptions;
|
||||
settings = {
|
||||
"catch_workers_output" = true;
|
||||
"clear_env" = "no";
|
||||
|
|
@ -316,6 +318,9 @@ in
|
|||
cfg.backend.nginx
|
||||
{
|
||||
root = "${appDir}/public";
|
||||
extraConfig = ''
|
||||
client_max_body_size ${uploadLimits.nginxClientMaxBodySize};
|
||||
'';
|
||||
locations = {
|
||||
"/" = {
|
||||
index = "index.php";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue