diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2014-06-27 07:25:37 +0200 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2014-06-27 07:25:37 +0200 |
commit | 9b8725a66e96836d776192a123fc9580e9f5dcce (patch) | |
tree | 94f39db3ae04c650deef7f54f13e2637ff5a2aa5 | |
parent | Updated bootstrap to version 3.2.0. (diff) | |
download | newspipe-9b8725a66e96836d776192a123fc9580e9f5dcce.tar.gz newspipe-9b8725a66e96836d776192a123fc9580e9f5dcce.tar.bz2 newspipe-9b8725a66e96836d776192a123fc9580e9f5dcce.zip |
Forcing SSL with Flask-SSLify on Heroku.
-rw-r--r-- | pyaggr3g470r/__init__.py | 4 | ||||
-rw-r--r-- | requirements.txt | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/pyaggr3g470r/__init__.py b/pyaggr3g470r/__init__.py index 36f95bc0..a1ab31bf 100644 --- a/pyaggr3g470r/__init__.py +++ b/pyaggr3g470r/__init__.py @@ -25,6 +25,10 @@ app.config['RECAPTCHA_USE_SSL'] = True app.config['RECAPTCHA_PUBLIC_KEY'] = conf.RECAPTCHA_PUBLIC_KEY app.config['RECAPTCHA_PRIVATE_KEY'] = conf.RECAPTCHA_PRIVATE_KEY +if conf.ON_HEROKU: + from flask_sslify import SSLify + sslify = SSLify(app) + ALLOWED_EXTENSIONS = set(['xml', 'opml', 'json']) def allowed_file(filename): diff --git a/requirements.txt b/requirements.txt index a486c593..df37a92d 100644 --- a/requirements.txt +++ b/requirements.txt @@ -13,6 +13,7 @@ Flask-WTF Flask-RESTful Flask-Babel Flask-Gravatar +Flask-SSLify WTForms python-postmark gevent |