Browse Source

fix path for payserver static files

hard-fail-on-bad-server-string
ThomasV 5 years ago
parent
commit
300888f21c
  1. 2
      electrum/daemon.py

2
electrum/daemon.py

@ -198,7 +198,7 @@ class PayServer(Logger):
app.add_routes([web.get('/api/get_invoice', self.get_request)]) app.add_routes([web.get('/api/get_invoice', self.get_request)])
app.add_routes([web.get('/api/get_status', self.get_status)]) app.add_routes([web.get('/api/get_status', self.get_status)])
app.add_routes([web.get('/bip70/{key}.bip70', self.get_bip70_request)]) app.add_routes([web.get('/bip70/{key}.bip70', self.get_bip70_request)])
app.add_routes([web.static(root, 'electrum/www')]) app.add_routes([web.static(root, os.path.join(os.path.dirname(__file__), 'www'))])
runner = web.AppRunner(app) runner = web.AppRunner(app)
await runner.setup() await runner.setup()
site = web.TCPSite(runner, port=port, host=host, ssl_context=self.config.get_ssl_context()) site = web.TCPSite(runner, port=port, host=host, ssl_context=self.config.get_ssl_context())

Loading…
Cancel
Save