diff --git a/config.ini.default b/config.ini.default index c28028a..10c47b2 100644 --- a/config.ini.default +++ b/config.ini.default @@ -1,5 +1,6 @@ [SERVICE] endpoint=http://127.0.0.1 +LISTEN_ADDRESS=127.0.0.1 port=8000 equivalence_table_file=./resources/equivalence_table.json diff --git a/semantic_matcher/service.py b/semantic_matcher/service.py index bb415c0..0b752fe 100644 --- a/semantic_matcher/service.py +++ b/semantic_matcher/service.py @@ -180,4 +180,4 @@ def _get_matcher_from_semantic_id(self, semantic_id: str) -> str: APP.include_router( SEMANTIC_MATCHING_SERVICE.router ) - uvicorn.run(APP, host="0.0.0.0", port=int(config["SERVICE"]["PORT"])) + uvicorn.run(APP, host=config["SERVICE"]["LISTEN_ADDRESS"], port=int(config["SERVICE"]["PORT"]))