Add parameters that make it possible to tweak the configuration
This commit is contained in:
parent
fc920c4556
commit
364cdea9e2
|
@ -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}
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue