Skip to content
This repository has been archived by the owner on Sep 1, 2020. It is now read-only.

Commit

Permalink
remove django-secure (no https at the moment)
Browse files Browse the repository at this point in the history
  • Loading branch information
mfa committed Sep 4, 2014
1 parent f5e1f3e commit b4f9e4c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
1 change: 1 addition & 0 deletions krprj/osm/models.py
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
from datetime import datetime from datetime import datetime
from django.utils.timezone import utc from django.utils.timezone import utc



class KircheOsm(models.Model): class KircheOsm(models.Model):
osm_id = models.BigIntegerField(db_index=True) osm_id = models.BigIntegerField(db_index=True)
TYPE_CHOICES = ( TYPE_CHOICES = (
Expand Down
16 changes: 8 additions & 8 deletions krprj/settings/default.py
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@
'djcelery', 'djcelery',
'compressor', 'compressor',
'compressor_celery', 'compressor_celery',
'djangosecure', # 'djangosecure',


'krprj.krunite', 'krprj.krunite',
'krprj.osm', 'krprj.osm',
Expand Down Expand Up @@ -178,12 +178,12 @@
X_FRAME_OPTIONS = 'DENY' X_FRAME_OPTIONS = 'DENY'


# django-secure # django-secure
SESSION_COOKIE_SECURE = True #SESSION_COOKIE_SECURE = True
SECURE_HSTS_SECONDS = 1 #SECURE_HSTS_SECONDS = 1
SECURE_HSTS_INCLUDE_SUBDOMAINS = True #SECURE_HSTS_INCLUDE_SUBDOMAINS = True
SECURE_FRAME_DENY = True #SECURE_FRAME_DENY = True
SECURE_CONTENT_TYPE_NOSNIFF = True #SECURE_CONTENT_TYPE_NOSNIFF = True
SECURE_BROWSER_XSS_FILTER = True #SECURE_BROWSER_XSS_FILTER = True
SECURE_PROXY_SSL_HEADER = ("HTTP_X_FORWARDED_PROTOCOL", "https") #SECURE_PROXY_SSL_HEADER = ("HTTP_X_FORWARDED_PROTOCOL", "https")


ALLOWED_HOSTS = ('.kirchenreich.org', '141.58.160.16', '/fs/web/kirchenreich/var/run/gunicorn.sock:80', '127.0.0.1') ALLOWED_HOSTS = ('.kirchenreich.org', '141.58.160.16', '/fs/web/kirchenreich/var/run/gunicorn.sock:80', '127.0.0.1')

0 comments on commit b4f9e4c

Please sign in to comment.