Add parameters that make it possible to tweak the configuration

This commit is contained in:
Sander van der Burg 2022-01-19 21:13:09 +01:00
parent fc920c4556
commit 364cdea9e2
1 changed files with 6 additions and 0 deletions

View File

@ -5,6 +5,8 @@
, instanceName ? "nginx${instanceSuffix}"
, documentRoot ? ../http-server-common/webapp
, workerConnections ? 190000
, extraConfig ? ""
, extraHTTPConfig ? ""
}:
let
@ -48,7 +50,11 @@ import ./default.nix {
listen ${toString port};
root ${documentRoot};
}
${extraHTTPConfig}
}
${extraConfig}
'';
};
}