redirect to SSL
This commit is contained in:
1
Procfile
1
Procfile
@@ -1 +1,2 @@
|
||||
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!
|
||||
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',
|
||||
|
||||
Reference in New Issue
Block a user