diff options
author | Niklas Hambüchen <mail@nh2.me> | 2020-10-11 03:15:19 +0200 |
---|---|---|
committer | Niklas Hambüchen <mail@nh2.me> | 2020-11-08 01:15:33 +0100 |
commit | 169ab0b89f124694e81639ff52c8bafc695d961d (patch) | |
tree | 98fe90ad695960c29fb360363a0258bb6db27edd /nixos/modules/services/databases/redis.nix | |
parent | c0f4be6652415416316fc7220b7c7ed16ee59c90 (diff) | |
download | nixpkgs-169ab0b89f124694e81639ff52c8bafc695d961d.tar nixpkgs-169ab0b89f124694e81639ff52c8bafc695d961d.tar.gz nixpkgs-169ab0b89f124694e81639ff52c8bafc695d961d.tar.bz2 nixpkgs-169ab0b89f124694e81639ff52c8bafc695d961d.tar.lz nixpkgs-169ab0b89f124694e81639ff52c8bafc695d961d.tar.xz nixpkgs-169ab0b89f124694e81639ff52c8bafc695d961d.tar.zst nixpkgs-169ab0b89f124694e81639ff52c8bafc695d961d.zip |
redis service: Listen on localhost by default. Fixes #100192.
All other database servers in NixOS also use this safe-by-default setting.
Diffstat (limited to 'nixos/modules/services/databases/redis.nix')
-rw-r--r-- | nixos/modules/services/databases/redis.nix | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/nixos/modules/services/databases/redis.nix b/nixos/modules/services/databases/redis.nix index f1777854e14..6b8853ae390 100644 --- a/nixos/modules/services/databases/redis.nix +++ b/nixos/modules/services/databases/redis.nix @@ -87,9 +87,12 @@ in bind = mkOption { type = with types; nullOr str; - default = null; # All interfaces - description = "The IP interface to bind to."; - example = "127.0.0.1"; + default = "127.0.0.1"; + description = '' + The IP interface to bind to. + <literal>null</literal> means "all interfaces". + ''; + example = "192.0.2.1"; }; unixSocket = mkOption { |