redirect to SSL

This commit is contained in:
2017-02-23 18:58:24 -05:00
parent f95b46ac8d
commit 0649ae97bd
2 changed files with 6 additions and 0 deletions

View File

@@ -1 +1,2 @@
web: gunicorn fincom.wsgi --log-file -
test: gunicorn fincom.wsgi --log-file - --keyfile server.key --certfile server.crt

View File

@@ -25,12 +25,17 @@ SECRET_KEY = os.environ['SECRET_KEY']
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
ALLOWED_HOSTS = [
'localhost',
'dtd-fincom.herokuapp.com',
'fincom.delt.space',
]
SECURE_SSL_REDIRECT = True
SESSION_COOKIE_SECURE = True
CSRF_COOKIE_SECURE = True
AUTHENTICATION_BACKENDS = [
'social_core.backends.google.GoogleOAuth2',
'django.contrib.auth.backends.ModelBackend',