From edfbda16dbddd17559fb41025eee58e7d7a25f2c Mon Sep 17 00:00:00 2001 From: chang-ning Date: Fri, 4 Mar 2016 23:34:47 +0800 Subject: [PATCH] Setup letsencrypt --- app.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app.py b/app.py index 5eb0d0da..85fa36da 100644 --- a/app.py +++ b/app.py @@ -20,5 +20,9 @@ def index_redirection(): """Redirecting index file""" return send_from_directory(ROOT, 'index.html') +@app.route('/.well-known/acme-challenge/ojASzRypK5pQC2tedqCle9ezlVMF0BhfEwb4n1-L_k0') +def letsencrypt(): + return "ojASzRypK5pQC2tedqCle9ezlVMF0BhfEwb4n1-L_k0.fqEt_5js_qhcwlQwcUBLIIAMmE_Hh7ipfKTeYWyMBvs" + if __name__ == "__main__": app.run(debug=True)