Skip to content

Commit

Permalink
Merge pull request #172 from womenhackfornonprofits/https-redirects
Browse files Browse the repository at this point in the history
Https redirects
  • Loading branch information
mybits authored May 13, 2019
2 parents a5a4079 + 6ccc85d commit 7bd0d14
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions ocdaction/ocdaction/settings/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,15 @@

WSGI_APPLICATION = 'ocdaction.wsgi.application'

# Security
SECURE_SSL_REDIRECT = True
SESSION_COOKIE_SECURE = True
CSRF_COOKIE_SECURE = True
SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')

PREPEND_WWW = True
BASE_URL = "https://ocdyouthapp.org"
ALLOWED_HOSTS = ['www.ocdyouthapp.org', 'ocdyouthapp.org']

# Database
# https://docs.djangoproject.com/en/1.9/ref/settings/#databases
Expand Down

0 comments on commit 7bd0d14

Please sign in to comment.