From 8ca74d3de218d2b34abd20f1fd7a799a476765ae Mon Sep 17 00:00:00 2001 From: Lex Berezhny Date: Fri, 12 Jul 2019 01:35:50 -0400 Subject: [PATCH] env variables to set websocket host and port --- torba/torba/server/env.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/torba/torba/server/env.py b/torba/torba/server/env.py index fbf5e58dc..fdb24d26c 100644 --- a/torba/torba/server/env.py +++ b/torba/torba/server/env.py @@ -38,6 +38,8 @@ class Env: self.db_dir = self.required('DB_DIRECTORY') self.db_engine = self.default('DB_ENGINE', 'leveldb') 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') if coin is not None: assert issubclass(coin, Coin)