Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Increase HSTS max age #1828

Merged
merged 2 commits into from
Feb 2, 2024
Merged
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
8 changes: 4 additions & 4 deletions newamericadotorg/settings/production.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from .base import *

import os

from .base import * # noqa: F403

# Timezone settings
TIME_ZONE = 'America/New_York'
USE_TZ = True
Expand All @@ -26,7 +26,7 @@
SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')

SECURE_HSTS_INCLUDE_SUBDOMAINS = False
SECURE_HSTS_SECONDS = 3600 # 1 hour in seconds
SECURE_HSTS_SECONDS = 63072000 # 2 years in seconds

AWS_QUERYSTRING_AUTH = False
AWS_IS_GZIPPED = True
Expand Down Expand Up @@ -150,7 +150,7 @@
PDF_GENERATOR_URL = os.getenv('PDF_GENERATOR_URL')

try:
from .local import *
from .local import * # noqa: F403
except ImportError:
pass

Expand Down
Loading