Enable password protection for Redis

This commit is contained in:
FreddleSpl0it committed 2024-11-19 14:25:31 +01:00
1 parent 326a446f8b
commit 89fb1322c6
34 files changed
+111 -63

No files matched your search

+1 -1
View File
@@ -23,7 +23,7 @@ else:
while True:
try:
r = redis.StrictRedis(host='redis', decode_responses=True, port=6379, db=0)
r = redis.StrictRedis(host='redis', decode_responses=True, port=6379, db=0, password=os.environ['REDISPASS'])
r.ping()
except Exception as ex:
print('%s - trying again...' % (ex))