From 84e39cc92524f640c45b0f051065ece5c8935427 Mon Sep 17 00:00:00 2001 From: cynic Date: Mon, 31 Oct 2022 18:59:16 -0400 Subject: [PATCH] allow cfg specification of host/port --- cathedral.py | 2 +- config.json | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) 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