mirror of
https://github.com/bigchaindb/bigchaindb.git
synced 2024-10-13 13:34:05 +00:00
Parameterize db host config via env var
This commit is contained in:
parent
3989346044
commit
a05c688682
@ -1,4 +1,5 @@
|
||||
import copy
|
||||
import os
|
||||
|
||||
# from functools import reduce
|
||||
# PORT_NUMBER = reduce(lambda x, y: x * y, map(ord, 'BigchainDB')) % 2**16
|
||||
@ -14,7 +15,7 @@ config = {
|
||||
'threads': None, # if none, the value will be cpu_count * 2 + 1
|
||||
},
|
||||
'database': {
|
||||
'host': 'localhost',
|
||||
'host': os.environ.get('BIGCHAINDB_DATABASE_HOST', 'localhost'),
|
||||
'port': 28015,
|
||||
'name': 'bigchain',
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user