From f278b735cc86fda2dd31ff23ee19e58dcf7c6fd9 Mon Sep 17 00:00:00 2001 From: ibuler Date: Fri, 4 Nov 2016 00:41:21 +0800 Subject: [PATCH] Modify settings --- config_example.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/config_example.py b/config_example.py index 634fd0367..6c824f5fb 100644 --- a/config_example.py +++ b/config_example.py @@ -59,7 +59,12 @@ class Config: # Use Redis as broker for celery and web socket REDIS_HOST = '127.0.0.1' REDIS_PORT = 6379 - # REDIS_PASSWORD = '' + REDIS_PASSWORD = '' + BROKER_URL = 'redis://%(password)s%(host)s:%(port)s/3' % { + 'password': REDIS_PASSWORD, + 'host': REDIS_HOST, + 'port': REDIS_PORT, + } # Api token expiration when create TOKEN_EXPIRATION = 3600