nginx module: make client_max_body_size configurable

This commit is contained in:
Robin Gloster 2016-07-27 13:47:31 +00:00
parent 8c61b3af03
commit 511410789b

View file

@ -68,7 +68,7 @@ let
proxy_http_version 1.0;
''}
client_max_body_size 10m;
client_max_body_size ${cfg.clientMaxBodySize};
server_tokens ${if cfg.serverTokens then "on" else "off"};
@ -270,7 +270,13 @@ in
serverTokens = mkOption {
type = types.bool;
default = false;
description = "Show nginx version in headers and error pages";
description = "Show nginx version in headers and error pages.";
};
clientMaxBodySize = mkOption {
type = types.string;
default = "10m";
description = "Set nginx global client_max_body_size.";
};
sslCiphers = mkOption {