Skip to content

Commit

Permalink
hardening the settings
Browse files Browse the repository at this point in the history
  • Loading branch information
matijakolaric committed Jun 6, 2020
1 parent c016646 commit 63abb92
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions dmp_project/settings.py
Expand Up @@ -165,3 +165,8 @@
send_default_pii=True
)
sentry_sdk.capture_message('Starting.')

CSRF_COOKIE_SECURE = not DEBUG
SESSION_COOKIE_SECURE = not DEBUG
SECURE_HSTS_SECONDS = 0 if DEBUG else 300
SECURE_HSTS_PRELOAD = DEBUG
1 change: 1 addition & 0 deletions music_publisher/admin.py
@@ -1,4 +1,5 @@
"""
Interface for :mod:`music_publisher`.
"""
import re
import zipfile
Expand Down

0 comments on commit 63abb92

Please sign in to comment.