Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

WIP: Add configuration for Strict-Transport-Security header #291

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions tcms_settings_dir/enterprise.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,10 @@

# make sure users from LDAP are assigned default settings
LDAP_AUTH_SYNC_USER_RELATIONS = 'tcms_enterprise.ldap.sync_user_relations'

# WARNING: these require a correct, non-self-signed SSL certificate
# Strict-Transport-Security header settings
# https://docs.djangoproject.com/en/4.2/ref/settings/#secure-hsts-include-subdomains
# https://docs.djangoproject.com/en/4.2/ref/settings/#secure-hsts-seconds
SECURE_HSTS_SECONDS = 60 * 24 * 365
SECURE_HSTS_INCLUDE_SUBDOMAINS = True
Loading