From 90db1248cd76271fefc83e4fdb3e1cd8b33852c2 Mon Sep 17 00:00:00 2001 From: Kfir Dayan Date: Wed, 5 Apr 2023 02:52:39 +0300 Subject: [PATCH] adding redis example --- .gitignore | 2 +- redis/redis.conf.example | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 redis/redis.conf.example diff --git a/.gitignore b/.gitignore index 2c0d4a9..dfd172e 100644 --- a/.gitignore +++ b/.gitignore @@ -12,7 +12,7 @@ tmp ## ENV Vars ## .env config/client_google_auth.json -redis +redis.conf ## Docker ## build_image.sh diff --git a/redis/redis.conf.example b/redis/redis.conf.example new file mode 100644 index 0000000..e1c993b --- /dev/null +++ b/redis/redis.conf.example @@ -0,0 +1,10 @@ +# Require clients to authenticate with a password +requirepass mypassword + +# Enable AOF persistence +appendonly yes +appendfsync everysec + +# Limit the maximum amount of memory used by Redis +maxmemory 256mb +maxmemory-policy allkeys-lru \ No newline at end of file