aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pyaggr3g470r/__init__.py4
-rw-r--r--requirements.txt1
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
bgstack15