env variables to set websocket host and port
This commit is contained in:
parent
1923e6f152
commit
8ca74d3de2
1 changed files with 2 additions and 0 deletions
|
@ -38,6 +38,8 @@ class Env:
|
||||||
self.db_dir = self.required('DB_DIRECTORY')
|
self.db_dir = self.required('DB_DIRECTORY')
|
||||||
self.db_engine = self.default('DB_ENGINE', 'leveldb')
|
self.db_engine = self.default('DB_ENGINE', 'leveldb')
|
||||||
self.max_query_workers = self.integer('MAX_QUERY_WORKERS', None)
|
self.max_query_workers = self.integer('MAX_QUERY_WORKERS', None)
|
||||||
|
self.websocket_host = self.default('WEBSOCKET_HOST', None)
|
||||||
|
self.websocket_port = self.integer('WEBSOCKET_PORT', None)
|
||||||
self.daemon_url = self.required('DAEMON_URL')
|
self.daemon_url = self.required('DAEMON_URL')
|
||||||
if coin is not None:
|
if coin is not None:
|
||||||
assert issubclass(coin, Coin)
|
assert issubclass(coin, Coin)
|
||||||
|
|
Loading…
Reference in a new issue