Skip to content

Commit faae61d

Browse files
authored
docs(hsts): note that production overrides Django config INFRA-297 (#6486)
1 parent 2e822ad commit faae61d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

kobo/settings/base.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@
4545
SESSION_COOKIE_SECURE = True
4646
CSRF_COOKIE_SECURE = True
4747

48+
# These HSTS settings are sometimes overriden via nginx like in the `kobo-helm-chart`
49+
# repository or by the AWS ALB/Azure app gateway. If you see the header returned
50+
# with other values, check these places first
4851
SECURE_HSTS_INCLUDE_SUBDOMAINS = env.bool('SECURE_HSTS_INCLUDE_SUBDOMAINS', False)
4952
SECURE_HSTS_PRELOAD = env.bool('SECURE_HSTS_PRELOAD', False)
5053
SECURE_HSTS_SECONDS = env.int('SECURE_HSTS_SECONDS', 0)

0 commit comments

Comments
 (0)