Skip to content

Commit 91a50be

Browse files
committed
config: Allow health endpoints to bypass SSL redirect
The forced redirect causes the Kubernetes probes to fail due to not being able to connect via TLS to the locally running service.
1 parent cda22e8 commit 91a50be

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

main/settings.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,12 @@
8080
AUTH_USER_MODEL = "users.User"
8181

8282
SECURE_SSL_REDIRECT = get_bool("MITOL_SECURE_SSL_REDIRECT", True) # noqa: FBT003
83+
SECURE_REDIRECT_EXEMPT = [
84+
"^health/startup/$",
85+
"^health/liveness/$",
86+
"^health/readiness/$",
87+
"^health/full/$",
88+
]
8389

8490
SITE_ID = 1
8591
APP_BASE_URL = get_string("MITOL_APP_BASE_URL", None)

0 commit comments

Comments
 (0)