Skip to content

Commit

Permalink
Enable https redirection
Browse files Browse the repository at this point in the history
  • Loading branch information
crazyguitar committed Jul 16, 2016
1 parent d07c3fd commit 19a8ef0
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
ROOT = os.path.join(DIR, 'docs', '_build', 'html')

app = Flask(__name__)
#if 'DYNO' in os.environ:
# sslify = SSLify(app)
if 'DYNO' in os.environ:
sslify = SSLify(app)

@app.route('/<path:path>')
def static_proxy(path):
Expand All @@ -23,9 +23,5 @@ 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)

0 comments on commit 19a8ef0

Please sign in to comment.