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()