summarylogtreecommitdiffstats
path: root/redis.conf-sane-defaults.patch
diff options
context:
space:
mode:
authorLeo P2016-05-10 15:53:32 -0400
committerLeo P2016-05-10 15:53:32 -0400
commitba4b3b94f0c5259b7c3e51a32638b385f8337b16 (patch)
tree9fa24990707841a79fc9fff312b7259aae31f93b /redis.conf-sane-defaults.patch
downloadaur-ba4b3b94f0c5259b7c3e51a32638b385f8337b16.tar.gz
redis-git
Diffstat (limited to 'redis.conf-sane-defaults.patch')
-rw-r--r--redis.conf-sane-defaults.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/redis.conf-sane-defaults.patch b/redis.conf-sane-defaults.patch
new file mode 100644
index 000000000000..97b1086457e2
--- /dev/null
+++ b/redis.conf-sane-defaults.patch
@@ -0,0 +1,31 @@
+diff --git a/redis.conf b/redis.conf
+index 6efb6ac..344e021 100644
+--- a/redis.conf
++++ b/redis.conf
+@@ -45,7 +45,7 @@
+ # Examples:
+ #
+ # bind 192.168.1.100 10.0.0.1
+-# bind 127.0.0.1 ::1
++bind 127.0.0.1 ::1
+ #
+ # ~~~ WARNING ~~~ If the computer running Redis is directly exposed to the
+ # internet, binding to all the interfaces is dangerous and will expose the
+@@ -118,7 +118,7 @@
+ # On other kernels the period depends on the kernel configuration.
+ #
+ # A reasonable value for this option is 60 seconds.
+-tcp-keepalive 0
++tcp-keepalive 60
+
+ ################################# GENERAL #####################################
+
+@@ -243,7 +243,7 @@
+ # The Append Only File will also be created inside this directory.
+ #
+ # Note that you must specify a directory here, not a file name.
+-dir ./
++dir /var/lib/redis/
+
+ ################################# REPLICATION #################################
+