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__':