new options

This commit is contained in:
Mateusz Gruszczyński
2025-02-24 10:18:52 +01:00
parent f58e2c5da0
commit 04c1e6d49a
8 changed files with 81 additions and 23 deletions

9
run_waitress.py Normal file
View File

@@ -0,0 +1,9 @@
from waitress import serve
from app import app, scheduler, clean_old_logs
import atexit
with app.app_context():
scheduler.add_job(func=clean_old_logs, trigger="interval", days=1)
atexit.register(lambda: scheduler.shutdown())
serve(app, host='0.0.0.0', port=5582, ident='', threads=4)