modified waitres parameters

This commit is contained in:
Nicolás Sánchez 2024-12-14 14:14:01 -03:00
parent d65751df48
commit 7df8b3a519
3 changed files with 6 additions and 3 deletions

View File

@ -1,3 +1,6 @@
2024.12.14:
. Modified waitress parameters.
2024.12.07: 2024.12.07:
. Switch to a proper WSGI server (waitress) . Switch to a proper WSGI server (waitress)

View File

@ -24,7 +24,7 @@ In case the permissions of the certificate changes, reset them this way:
# ll /etc/letsencrypt/ # 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 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(): 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"]) #base_api.run(host="0.0.0.0", port=broker.get_config()["port"])

View File

@ -605,7 +605,7 @@ if __name__=="__main__":
#Waitress #Waitress
logger = logging.getLogger('waitress') logger = logging.getLogger('waitress')
logger.setLevel(logging.INFO) 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 #Flask
# app.run(host="0.0.0.0", port=5010, debug=True) # app.run(host="0.0.0.0", port=5010, debug=True)