env variables to set websocket host and port

This commit is contained in:
Lex Berezhny 2019-07-12 01:35:50 -04:00
parent 1923e6f152
commit 8ca74d3de2

View file

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