mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-27 05:43:50 +03:00
nginx module: make client_max_body_size configurable
This commit is contained in:
parent
8c61b3af03
commit
511410789b
@ -68,7 +68,7 @@ let
|
|||||||
proxy_http_version 1.0;
|
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"};
|
server_tokens ${if cfg.serverTokens then "on" else "off"};
|
||||||
|
|
||||||
@ -270,7 +270,13 @@ in
|
|||||||
serverTokens = mkOption {
|
serverTokens = mkOption {
|
||||||
type = types.bool;
|
type = types.bool;
|
||||||
default = false;
|
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 {
|
sslCiphers = mkOption {
|
||||||
|
Loading…
Reference in New Issue
Block a user