aboutsummaryrefslogtreecommitdiff
path: root/pyaggr3g470r
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2014-06-27 07:25:37 +0200
committerCédric Bonhomme <cedric@cedricbonhomme.org>2014-06-27 07:25:37 +0200
commit9b8725a66e96836d776192a123fc9580e9f5dcce (patch)
tree94f39db3ae04c650deef7f54f13e2637ff5a2aa5 /pyaggr3g470r
parentUpdated bootstrap to version 3.2.0. (diff)
downloadnewspipe-9b8725a66e96836d776192a123fc9580e9f5dcce.tar.gz
newspipe-9b8725a66e96836d776192a123fc9580e9f5dcce.tar.bz2
newspipe-9b8725a66e96836d776192a123fc9580e9f5dcce.zip
Forcing SSL with Flask-SSLify on Heroku.
Diffstat (limited to 'pyaggr3g470r')
-rw-r--r--pyaggr3g470r/__init__.py4
1 files changed, 4 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):
bgstack15