Skip to content

Commit

Permalink
Added secure redirect exect for ocsp
Browse files Browse the repository at this point in the history
  • Loading branch information
fdurand committed Jun 1, 2015
1 parent 3275e0d commit 613c509
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Inverse-pki requires the following:
Django (>= 1.6)
Django REST framework
Django bootstrap3
Django secure

# Install

Expand Down Expand Up @@ -53,3 +54,8 @@ sudo pip install djangorestframework
sudo pip install django-bootstrap3
```

## Install Django secure

```
sudo pip install django-secure
```
5 changes: 5 additions & 0 deletions inverse/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
'rest_framework',
'rest_framework.authtoken',
'bootstrap3',
'djangosecure',
'pki',
)

Expand All @@ -49,8 +50,12 @@
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
'djangosecure.middleware.SecurityMiddleware',
)

SECURE_SSL_REDIRECT = True
SECURE_REDIRECT_EXEMPT = [r'^pki/ocsp/$']

ROOT_URLCONF = 'inverse.urls'

WSGI_APPLICATION = 'inverse.wsgi.application'
Expand Down

0 comments on commit 613c509

Please sign in to comment.