Modify settings

pull/530/head
ibuler 2016-11-04 00:41:21 +08:00
parent 2a65e81316
commit f278b735cc
1 changed files with 6 additions and 1 deletions

View File

@ -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