modified waitres parameters
This commit is contained in:
parent
d65751df48
commit
7df8b3a519
|
|
@ -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)
|
||||||
|
|
||||||
|
|
|
||||||
4
main.py
4
main.py
|
|
@ -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"])
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue