Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- commit 896fc814f874ccf256959823b0b80390b6ff0079
- Author: Bogdan Sima <bogdan@gyglish.com>
- Date: Tue Feb 23 22:41:06 2016 +0100
- Return LETSENCRYPT_TOKEN token at LETSENCRYPT_ROUTE route
- diff --git a/app/__init__.py b/app/__init__.py
- index c2f4d938cb17..eea6e107ffed 100644
- --- a/app/__init__.py
- +++ b/app/__init__.py
- @@ -66,6 +66,11 @@ def site_verification():
- return app.send_static_file("site_verification.html")
- +@app.route(app.config['LETSENCRYPT_ROUTE'])
- +def certificate_verification():
- + """Returns letsencrypt verification token"""
- + return app.config['LETSENCRYPT_TOKEN']
- +
- # Robots file
- @app.route("/robots.txt")
- def robots_txt():
- diff --git a/config.py b/config.py
- index 95f7326bf290..3382dee89586 100644
- --- a/config.py
- +++ b/config.py
- @@ -15,6 +15,8 @@ class Config(object):
- # Credentials for admin
- ADMIN_USER = 'admin'
- ADMIN_PASS = 'password'
- + LETSENCRYPT_ROUTE = '/certificate/verification/route'
- + LETSENCRYPT_TOKEN = 'test-toKen'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement