mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2025-01-24 01:36:38 +00:00
bind nix-shell's redis to localhost
For security, mainly. Also, limit to one process. A follow up to #22
This commit is contained in:
parent
60919b88b9
commit
144f95fb34
|
@ -71,7 +71,8 @@ pkgs.mkShell {
|
||||||
# envs set with export and as attributes are treated differently.
|
# envs set with export and as attributes are treated differently.
|
||||||
# for example. printenv <Name> will not fetch the value of an attribute.
|
# for example. printenv <Name> will not fetch the value of an attribute.
|
||||||
export USE_REDIS_PORT=6379
|
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
|
# maybe set more env-vars
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue