Skip to content

Commit 889a4de

Browse files
committed
fix: Remove duplicate settings entry and consolidate defaults
The `SECURE_REDIRECT_EXEMPT` value was duplicated. This consolidates the values to ensure that K8s healthchecks continue to operate properly.
1 parent b5e3779 commit 889a4de

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

main/settings.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -132,17 +132,15 @@
132132
default=True,
133133
description="Application-level SSL redirect setting.",
134134
)
135-
SECURE_REDIRECT_EXEMPT = [
136-
"^health/startup/$",
137-
"^health/liveness/$",
138-
"^health/readiness/$",
139-
"^health/full/$",
140-
]
141135

142136
SECURE_REDIRECT_EXEMPT = get_delimited_list(
143137
name="MITX_ONLINE_SECURE_REDIRECT_EXEMPT",
144138
default=[
145139
r"cms/pages/.*",
140+
r"^health/startup/$",
141+
r"^health/liveness/$",
142+
r"^health/readiness/$",
143+
r"^health/full/$",
146144
],
147145
description="Application-level SSL redirect exemption setting.",
148146
)

0 commit comments

Comments
 (0)