mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2026-09-14 11:06:13 +05:00
fix: let docker health checks bypass host routing
This commit is contained in:
parent
27c816578a
commit
1a958504ac
@ -146,6 +146,9 @@ def HostRoutingMiddleware(get_response):
|
||||
)
|
||||
|
||||
def middleware(request):
|
||||
if request.path in {"/health", "/health/"}:
|
||||
return get_response(request)
|
||||
|
||||
request_host = (request.get_host() or "").lower()
|
||||
config = getattr(request, "archivebox_config", None)
|
||||
if config is None:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user