aggiunto waitress per il server api

This commit is contained in:
2024-12-22 21:18:29 +01:00
parent 088e31536e
commit 313fc81dc7
3 changed files with 15 additions and 1 deletions

View File

@@ -6,6 +6,7 @@ import base64
import hashlib
import logging
from cryptography.fernet import Fernet
from waitress import serve
# Configurazione
db_file = "data/passwords.db"
@@ -196,4 +197,5 @@ def list_sites_api():
# Avvio dell'app
if __name__ == '__main__':
init_db()
app.run(host='0.0.0.0', port=5000)
#app.run(host='0.0.0.0', port=5000)
serve(app, host='0.0.0.0', port=5000)