Skip to content

Commit cb18b04

Browse files
committed
add sslify
1 parent 6d467cf commit cb18b04

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

app.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
from flask import Flask, render_template, request, redirect, session
33
from rauth import OAuth2Service
44
from urlparse import urlparse
5+
from flask_sslify import SSLify
56

67
import requests
78
import os
@@ -11,6 +12,7 @@
1112
app.requests_session = requests.Session()
1213
app.secret_key = os.urandom(24)
1314

15+
sslify = SSLify(app)
1416

1517
with open('config.json') as f:
1618
config = json.load(f)

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@ requests==2.3.0
1111
wsgiref==0.1.2
1212

1313
gunicorn==18.0
14+
Flask-SSLify==0.1.4

0 commit comments

Comments
 (0)