From 01f6003d352043a701b60eb2d43ffa08ee8d4b3c Mon Sep 17 00:00:00 2001 From: mamamiyear Date: Tue, 28 Oct 2025 00:37:59 +0800 Subject: [PATCH] chore: server bind host use configuration --- src/main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.py b/src/main.py index 66221cd..1af91ba 100644 --- a/src/main.py +++ b/src/main.py @@ -22,8 +22,9 @@ def main(): vsdb.init() people_store.init() conf = config.get_instance() + host = conf.get('web_service', 'server_host', fallback='127.0.0.1') port = conf.getint('web_service', 'server_port', fallback=8099) - uvicorn.run(api, host="127.0.0.1", port=port) + uvicorn.run(api, host=host, port=port) if __name__ == "__main__": main() \ No newline at end of file