aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArkadiusz Adamski <ar4s@users.noreply.github.com>2017-07-28 07:47:23 +0200
committerGitHub <noreply@github.com>2017-07-28 07:47:23 +0200
commit15cb0e31acf8c8363406fd55ded4fa6a7f910814 (patch)
tree19b5306e220156a5e1416c76b2d33b5b5f36eb4a
parent83ee0947c17f40c4393033a756ce02544ae4b3ef (diff)
parent0a7a4c638ed7c641cb6209efcc05cce501117b62 (diff)
downloadtipboard-15cb0e31acf8c8363406fd55ded4fa6a7f910814.tar.gz
tipboard-15cb0e31acf8c8363406fd55ded4fa6a7f910814.tar.bz2
tipboard-15cb0e31acf8c8363406fd55ded4fa6a7f910814.zip
Merge pull request #53 from netoarmando/fix/redis-authentication
Add support to pass a password to Redis client
-rw-r--r--tipboard/settings.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tipboard/settings.py b/tipboard/settings.py
index cedd034..1b34e0d 100644
--- a/tipboard/settings.py
+++ b/tipboard/settings.py
@@ -14,6 +14,7 @@ import os
# Redis serwer configuration
REDIS_HOST = 'localhost'
REDIS_PORT = 6379
+REDIS_PASSWORD = None
REDIS_DB = 4
DEBUG = False
@@ -62,16 +63,19 @@ except IOError:
REDIS = dict(
host=REDIS_HOST,
port=REDIS_PORT,
+ password=REDIS_PASSWORD,
db=REDIS_DB,
)
REDIS_ASYNC = dict(
host=REDIS_HOST,
port=REDIS_PORT,
+ password=REDIS_PASSWORD,
selected_db=REDIS_DB,
)
REDIS_SYNC = dict(
host=REDIS_HOST,
port=REDIS_PORT,
+ password=REDIS_PASSWORD,
db=REDIS_DB,
)