laxaurus před 6 roky
rodič
revize
65b167e3d5

+ 20 - 0
src/config/pm_prd.cfg

@@ -0,0 +1,20 @@
+[portfolio_monitor]
+name: 'portfolio_monitor'
+bootstrap_host: 'vsu-longhorn'
+bootstrap_port: 9092
+redis_host: 'localhost'
+redis_port: 6379
+redis_db: 1
+tws_host: 'vsu-longhorn'
+group_id: 'PM'
+session_timeout_ms: 10000
+clear_offsets:  False
+logconfig: {'level': logging.INFO, 'filemode': 'w', 'filename': '/tmp/pm.log'}
+topics: ['position', 'positionEnd', 'tickPrice', 'execDetails', 'update_portfolio_account', 'event_tm_request_table_structure', 'event_request_port_summary', AbstractTableModel.EVENT_TM_TABLE_STRUCTURE_CHANGED]
+seek_to_end: ['*']
+
+
+webconsole.host: '0.0.0.0'
+webconsole.port:6001
+webconsole.debug: True
+webconsole.auto_reload: False

+ 6 - 1
src/config/tws_gateway_prd.cfg

@@ -43,4 +43,9 @@ ib_heartbeat.ib_port: 8496
 ib_heartbeat.appid.id: 9911
 ib_heartbeat.gateway: 'vsu-longhorn'
 ib_heartbeat.try_interval: 60
-ib_heartbeat.suppress_msg_interval: 120
+ib_heartbeat.suppress_msg_interval: 120
+
+webconsole.host: '0.0.0.0'
+webconsole.port:5001
+webconsole.debug: True
+webconsole.auto_reload: False

+ 22 - 0
src/config/ws_prd.cfg

@@ -0,0 +1,22 @@
+[webSocketServer]
+name: 'WebSocketServer'
+bootstrap_host: 'vsu-longhorn'
+bootstrap_port: 9092
+#
+#
+redis_host: 'localhost'
+redis_port: 6379
+#
+# DIFFERENT REDIS DB for PRODUCTION!!!
+redis_db: 1
+group_id: 'WS'
+session_timeout_ms: 10000
+clear_offsets:  False
+logconfig: {'level': logging.INFO, 'filemode': 'w', 'filename': '/tmp/ws.log'}
+topics: AbstractTableModel.TM_EVENTS + [PortfolioMonitor.EVENT_PORT_VALUES_UPDATED]
+seek_to_end: ['*']
+ws_flush_timeout: 2000
+ws_dirty_count: 20
+ws_port: 9001
+#ws_webserver_cfg_path:'/home/laxaurus/workspace/finopt/src/config/ws_webserver.cfg'
+ws_webserver_cfg_path:'/home/vuser-longhorn/pyenvs/ironfly/finopt/src/config/ws_webserver_prd.cfg'

+ 6 - 1
src/config/ws_webserver_prd.cfg

@@ -15,4 +15,9 @@ tools.staticdir.tmpl : './html'
 
 [/public]
 tools.staticdir.on: True
-tools.staticdir.dir : './html/public'                                        
+tools.staticdir.dir : './html/public'
+
+[/js]
+tools.staticdir.on: True
+tools.staticdir.dir : './html/js'
+