diff --git a/cathedral.py b/cathedral.py index 85fe1e5..959b85b 100644 --- a/cathedral.py +++ b/cathedral.py @@ -13,7 +13,7 @@ class cathedral(): runner = web.ServerRunner(srv) await runner.setup() - site = web.TCPSite(runner, "localhost", 1488) + site = web.TCPSite(runner, self.cfg.get("host"), self.cfg.get("port")) await site.start() print("serving...") diff --git a/config.json b/config.json index b45d949..87ff5af 100644 --- a/config.json +++ b/config.json @@ -1,3 +1,5 @@ { + "host": "localhost", + "port": 1337, "PLUGIN_PATH": "./towers" } \ No newline at end of file