From 494b2190a76e5bd8a8feed3f99a1f190d030d488 Mon Sep 17 00:00:00 2001 From: Kavalar Date: Wed, 22 Mar 2023 18:36:20 +0300 Subject: [PATCH] fix host --- main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 418b300..2fbd035 100644 --- a/main.py +++ b/main.py @@ -5,12 +5,12 @@ from daemon.SimpleDaemon import Daemon class CdnServerDaemon(Daemon): def run(self): - uvicorn.run("server:app", port=5044, log_level="info") + uvicorn.run("server:app", host='0.0.0.0', port=5044, log_level="info") # Press the green button in the gutter to run the script. if __name__ == '__main__': - # uvicorn.run("server:app", port=5000, log_level="info") + # uvicorn.run("server:app", host='0.0.0.0', port=5044, log_level="info") with CdnServerDaemon('/tmp/daemon-cdn-server.pid', error_log_file='errlog.txt') as daemon: daemon.process_command()