From d07c3fd5ba0808ce6116dfe10de18382180af2d5 Mon Sep 17 00:00:00 2001 From: chang-ning Date: Sat, 16 Jul 2016 19:19:24 +0800 Subject: [PATCH] Add letsencrypt ssl --- app.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app.py b/app.py index 9f461ed0..b1d967b4 100644 --- a/app.py +++ b/app.py @@ -23,6 +23,9 @@ def index_redirection(): """Redirecting index file""" return send_from_directory(ROOT, 'index.html') +@app.route('/.well-known/acme-challenge/39LkboWlzrvSn4bGSC-vx5Ea4FqKipU5QYcLKAn1hSM') +def letsencrypt(): + return "39LkboWlzrvSn4bGSC-vx5Ea4FqKipU5QYcLKAn1hSM.1MQ2tN97oDMCS6VnIiDMXAjUQwpiEoyNT2mUiGLhR7o" if __name__ == "__main__": app.run(debug=True)