2
0

redis-conf.sh 241 B

123456789101112
  1. #!/bin/sh
  2. cat <<EOF > /redis.conf
  3. requirepass $REDISPASS
  4. user quota_notify on nopass ~QW_* -@all +get +hget +ping
  5. EOF
  6. if [ -n "$REDISMASTERPASS" ]; then
  7. echo "masterauth $REDISMASTERPASS" >> /redis.conf
  8. fi
  9. exec redis-server /redis.conf