From 0eb8750c863a6336c5096b8c9b07c2dca52c71ee Mon Sep 17 00:00:00 2001 From: maxime Date: Wed, 25 Mar 2026 00:26:41 +0100 Subject: [PATCH] 1.3 --- flask/main.py | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/flask/main.py b/flask/main.py index 77757f3..3f70375 100644 --- a/flask/main.py +++ b/flask/main.py @@ -67,5 +67,16 @@ def get_users(): users = auth.get_users() return jsonify({"success": True, "users": users}) +import os + +BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) + if __name__ == "__main__": - app.run(host="0.0.0.0", port=5000) \ No newline at end of file + app.run( + host="0.0.0.0", + port=5000, + ssl_context=( + os.path.join(BASE_DIR, 'web_secu', 'ssl', 'cert.pem'), + os.path.join(BASE_DIR, 'web_secu', 'ssl', 'key.pem') + ) + ) \ No newline at end of file