add testing files

This commit is contained in:
2025-12-23 15:21:23 +01:00
parent ca7fbe9b80
commit a39862b5ab
3 changed files with 48 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
# acl.conf
# 1. Disable the default user (recommended for production)
# This user is created by default with full access if no password is set.
user default off
# 2. Define a "root" or "admin" user with full access
user admin on >test +@all ~*
# 4. Define a "cache" user
# This user can read and write to keys starting with "cache:".
# This is great for application-specific keys.
user cache on >your_strong_webapp_password +@all ~cache:*
# 5. Define a "session" user
# This user can only get/set/del/expire keys related to caching.
user session on >your_strong_cache_password +GET +SET +SETEX +DEL +EXPIRE ~session:*
# 6. Define a "cache" user
# This user can read and write to keys starting with "cache:".
# This is great for application-specific keys.
user limiter on >your_strong_limiter_password +@all ~LIMITS:*
user pubsubuser on >strongpassword &printer:* +PUBLISH +SUBSCRIBE +PSUBSCRIBE +UNSUBSCRIBE +PUNSUBSCRIBE