proper WSGI server

This commit is contained in:
Nicolás Sánchez 2024-12-07 17:58:01 -03:00
parent d74c3b9923
commit 69b7914d9e
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,6 @@
2024.12.07:
. Switch to a proper WSGI server (waitress)
2024.12.04:
. Proper missing bak file handling on switch_to_long.

View File

@ -4,6 +4,7 @@ import os
import sys
import time
from threading import Thread
from waitress import serve
import sqlite3
import ccxt
@ -22,7 +23,7 @@ In case the permissions of the certificate changes, reset them this way:
# ll /etc/letsencrypt/
'''
version = "2024.12.04"
version = "2024.12.07"
'''
Color definitions. If you want to change them, check the reference at https://en.wikipedia.org/wiki/ANSI_escape_code#Colors
@ -1264,7 +1265,8 @@ def reload_safety_order():
def run_API():
base_api.run(host="0.0.0.0", port=broker.get_config()["port"])
serve(base_api, host="0.0.0.0", port=broker.get_config()["port"])
#base_api.run(host="0.0.0.0", port=broker.get_config()["port"])