diff --git a/changelog.txt b/changelog.txt index 40f9828..4923272 100755 --- a/changelog.txt +++ b/changelog.txt @@ -1,3 +1,6 @@ +2024.12.14: +. Modified waitress parameters. + 2024.12.07: . Switch to a proper WSGI server (waitress) diff --git a/main.py b/main.py index 5ee1299..4c3b041 100644 --- a/main.py +++ b/main.py @@ -24,7 +24,7 @@ In case the permissions of the certificate changes, reset them this way: # ll /etc/letsencrypt/ ''' -version = "2024.12.07" +version = "2024.12.14" ''' Color definitions. If you want to change them, check the reference at https://en.wikipedia.org/wiki/ANSI_escape_code#Colors @@ -1266,7 +1266,7 @@ def reload_safety_order(): def run_API(): - serve(base_api, host="0.0.0.0", port=broker.get_config()["port"]) + serve(base_api, host="0.0.0.0", port=broker.get_config()["port"], threads=32) #base_api.run(host="0.0.0.0", port=broker.get_config()["port"]) diff --git a/utils/statistics_server_v3.py b/utils/statistics_server_v3.py index 4ad7281..7d45482 100644 --- a/utils/statistics_server_v3.py +++ b/utils/statistics_server_v3.py @@ -605,7 +605,7 @@ if __name__=="__main__": #Waitress logger = logging.getLogger('waitress') logger.setLevel(logging.INFO) - serve(stats_api,host="0.0.0.0",port=5010) + serve(stats_api,host="0.0.0.0",port=5010, threads=32) #Flask # app.run(host="0.0.0.0", port=5010, debug=True)