chore(redis): set acl if username is specified

This commit is contained in:
Tobias Zenk 2024-09-03 10:55:17 +02:00
parent 3dd727b7ed
commit 5ed5856a6d
No known key found for this signature in database
GPG key ID: 953FFB020465E686

View file

@ -790,6 +790,10 @@ acllog-max-len 128
# AUTH <password> as usually, or more explicitly with AUTH default <password>
# if they follow the new protocol: both will work.
{% if redis_user and redis_secret %}
user {{ redis_user }} on +@all ~* >{{ redis_secret }}
{% endif %}
{% if redis_secret %}
requirepass {{ redis_secret }}
{% endif %}