improve security; add redis authentication

This commit is contained in:
L4RM4ND 2023-03-02 19:42:02 +01:00
parent ded229e84c
commit 6a27814f85
2 changed files with 2 additions and 1 deletions

View File

@ -57,7 +57,7 @@ session:
host: authelia-redis
port: 6379
# This secret can also be set using the env variables AUTHELIA_SESSION_REDIS_PASSWORD_FILE
# password: authelia
password: SuperSecureRedisAuthPassword # must be the same as in the docker-compose.yml defined for the redis services
regulation:
max_retries: 3

View File

@ -24,6 +24,7 @@ services:
redis:
image: redis:alpine
container_name: authelia-redis
command: redis-server --requirepass SuperSecureRedisAuthPassword # also reflect this in the authelia config file
volumes:
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/authelia/redis:/data
networks: