From ab6503f7b01875d955710bbf60aaeec042d7f1c9 Mon Sep 17 00:00:00 2001 From: thematdev Date: Tue, 12 Jan 2021 21:40:10 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D0=BB=20?= =?UTF-8?q?=D0=BF=D0=BE=D0=BB=D1=8F=20=D0=B2=20=D0=BA=D0=BE=D0=BD=D1=84?= =?UTF-8?q?=D0=B8=D0=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/json/main.json | 4 +++- main.py | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/config/json/main.json b/config/json/main.json index 2d3210e..407af6e 100644 --- a/config/json/main.json +++ b/config/json/main.json @@ -3,6 +3,8 @@ "server_name": "thematdev.org", "port": "1488", "texlink": "tex.thematdev.org", - "texport": "1488" + "texport": "1488", + "host": "127.0.0.1", + "host_port": "1488" } } diff --git a/main.py b/main.py index b5f8b57..8e1c45c 100644 --- a/main.py +++ b/main.py @@ -77,7 +77,7 @@ def texindex(): def main(): - app.run('thematdev.org', 1488) + app.run(f"{main_cfg_data['hosts']['host']}", f"{main_cfg_data['hosts']['host_port']}") if __name__ == '__main__':