From 144f95fb34cea438a0251edfc077f48b14584f92 Mon Sep 17 00:00:00 2001 From: Houkime <> Date: Wed, 30 Nov 2022 11:20:08 +0000 Subject: [PATCH] bind nix-shell's redis to localhost For security, mainly. Also, limit to one process. A follow up to #22 --- shell.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/shell.nix b/shell.nix index 4589192..668da69 100644 --- a/shell.nix +++ b/shell.nix @@ -71,7 +71,8 @@ pkgs.mkShell { # envs set with export and as attributes are treated differently. # for example. printenv will not fetch the value of an attribute. export USE_REDIS_PORT=6379 - redis-server --port $USE_REDIS_PORT >/dev/null & + pkill redis-server + redis-server --bind 127.0.0.1 --port $USE_REDIS_PORT >/dev/null & # maybe set more env-vars ''; }