X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/96e9f8d5e3dc862e4590375de5ca9770e151ea84..6663653f515285aebe772663a24c381929c3e512:/redis.conf?ds=sidebyside diff --git a/redis.conf b/redis.conf index e0335996..1b79e09e 100644 --- a/redis.conf +++ b/redis.conf @@ -156,6 +156,22 @@ dir ./ # slave-serve-stale-data yes +# You can configure a slave instance to accept writes or not. Writing against +# a slave instance may be useful to store some ephemeral data (because data +# written on a slave will be easily deleted after resync with the master) but +# may also cause problems if clients are writing to it because of a +# misconfiguration. +# +# Since Redis 2.6 by default slaves are read-only. +# +# Note: read only slaves are not designed to be exposed to untrusted clients +# on the internet. It's just a protection layer against misuse of the instance. +# Still a read only slave exports by default all the administrative commands +# such as CONFIG, DEBUG, and so forth. To a limited extend you can improve +# security of read only slaves using 'rename-command' to shadow all the +# administrative / dangerous commands. +slave-read-only yes + # Slaves send PINGs to server in a predefined interval. It's possible to change # this interval with the repl_ping_slave_period option. The default value is 10 # seconds.