redirect to SSL
This commit is contained in:
1
Procfile
1
Procfile
@@ -1 +1,2 @@
|
|||||||
web: gunicorn fincom.wsgi --log-file -
|
web: gunicorn fincom.wsgi --log-file -
|
||||||
|
test: gunicorn fincom.wsgi --log-file - --keyfile server.key --certfile server.crt
|
||||||
|
|||||||
@@ -25,12 +25,17 @@ SECRET_KEY = os.environ['SECRET_KEY']
|
|||||||
# SECURITY WARNING: don't run with debug turned on in production!
|
# SECURITY WARNING: don't run with debug turned on in production!
|
||||||
DEBUG = True
|
DEBUG = True
|
||||||
|
|
||||||
|
|
||||||
ALLOWED_HOSTS = [
|
ALLOWED_HOSTS = [
|
||||||
'localhost',
|
'localhost',
|
||||||
'dtd-fincom.herokuapp.com',
|
'dtd-fincom.herokuapp.com',
|
||||||
'fincom.delt.space',
|
'fincom.delt.space',
|
||||||
]
|
]
|
||||||
|
|
||||||
|
SECURE_SSL_REDIRECT = True
|
||||||
|
SESSION_COOKIE_SECURE = True
|
||||||
|
CSRF_COOKIE_SECURE = True
|
||||||
|
|
||||||
AUTHENTICATION_BACKENDS = [
|
AUTHENTICATION_BACKENDS = [
|
||||||
'social_core.backends.google.GoogleOAuth2',
|
'social_core.backends.google.GoogleOAuth2',
|
||||||
'django.contrib.auth.backends.ModelBackend',
|
'django.contrib.auth.backends.ModelBackend',
|
||||||
|
|||||||
Reference in New Issue
Block a user