redis: bind to localhost by default
This avoids leaving a port open to the local network and also the annoying firewall confirmation dialogs every time redis starts. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
parent
b8e39d86fa
commit
71a6438a07
1 changed files with 1 additions and 0 deletions
|
@ -27,6 +27,7 @@ class Redis < Formula
|
|||
inreplace "redis.conf" do |s|
|
||||
s.gsub! "/var/run/redis.pid", "#{var}/run/redis.pid"
|
||||
s.gsub! "dir ./", "dir #{var}/db/redis/"
|
||||
s.gsub! "\# bind 127.0.0.1", "bind 127.0.0.1"
|
||||
end
|
||||
|
||||
doc.install Dir["doc/*"]
|
||||
|
|
Loading…
Reference in a new issue