mirror of
https://git.wownero.com/wownero/wownero-funding-system.git
synced 2024-08-15 00:53:45 +00:00
support for custom redis port
This commit is contained in:
parent
401c26e85b
commit
bece1a90e7
2 changed files with 11 additions and 1 deletions
|
@ -22,6 +22,10 @@ SESSION_PREFIX = os.environ.get('{coincode}_SESSION_PREFIX', 'session:').format(
|
|||
REDIS_HOST = os.environ.get('REDIS_HOST', '127.0.0.1')
|
||||
REDIS_PORT = int(os.environ.get('REDIS_PORT', 6379))
|
||||
REDIS_PASSWD = os.environ.get('REDIS_PASSWD', None)
|
||||
REDIS_URI = "redis://"
|
||||
if REDIS_PASSWD:
|
||||
REDIS_URI += f":{REDIS_PASSWD}"
|
||||
REDIS_URI += f"@{REDIS_HOST}:{REDIS_PORT}"
|
||||
|
||||
BIND_HOST = os.environ.get("BIND_HOST", "0.0.0.0")
|
||||
if not BIND_HOST:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue