Enable HTTPS and external access in Flask app

Updated app.run to bind to 0.0.0.0 for external access and enabled HTTPS using cert.pem and key.pem SSL context.
This commit is contained in:
2025-07-01 12:11:02 +02:00
parent acd8a68c1f
commit 12d7e0c30c

2
app.py
View File

@@ -81,4 +81,4 @@ def scan():
# Run # Run
if __name__ == "__main__": if __name__ == "__main__":
app.run(debug=True) app.run(host="0.0.0.0", debug=True, ssl_context=("cert.pem", "key.pem"))