0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-13 21:50:33 +03:00

nixos/nginx: fix type of mapHashBucketSize

While the default is indeed 32/64/128, the option accepts any `size`[1]
including values >128, as observed in a customer project.

[1] https://nginx.org/en/docs/http/ngx_http_map_module.html

(cherry picked from commit 4a2a4193f9)
This commit is contained in:
Maximilian Bosch 2025-06-02 17:48:19 +02:00 committed by github-actions[bot]
parent a774d525e9
commit 4579a816f4

View file

@ -1002,17 +1002,14 @@ in
};
mapHashBucketSize = mkOption {
type = types.nullOr (
types.enum [
32
64
128
]
);
type = types.nullOr (types.ints.positive);
default = null;
description = ''
Sets the bucket size for the map variables hash tables. Default
value depends on the processors cache line size.
Refer to [the nginx docs on hashes](https://nginx.org/en/docs/hash.html)
for more information.
'';
};