allow cfg specification of host/port

master
cynic 3 years ago
parent 7553773236
commit 84e39cc925
  1. 2
      cathedral.py
  2. 2
      config.json

@ -13,7 +13,7 @@ class cathedral():
runner = web.ServerRunner(srv) runner = web.ServerRunner(srv)
await runner.setup() await runner.setup()
site = web.TCPSite(runner, "localhost", 1488) site = web.TCPSite(runner, self.cfg.get("host"), self.cfg.get("port"))
await site.start() await site.start()
print("serving...") print("serving...")

@ -1,3 +1,5 @@
{ {
"host": "localhost",
"port": 1337,
"PLUGIN_PATH": "./towers" "PLUGIN_PATH": "./towers"
} }
Loading…
Cancel
Save