Skip to content

Commit 03445a8

Browse files
committed
fix: stac-fastapi health checks.
1 parent 42015b3 commit 03445a8

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

docs/user-guide/configuration.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,9 @@ The application is configurable via environment variables.
134134
"^/api$": ["GET"],
135135
"^/conformance$": ["GET"],
136136
"^/docs/oauth2-redirect": ["GET"],
137-
"^/healthz": ["GET"]
137+
"^/healthz": ["GET"],
138+
"^/_mgmt/ping": ["GET"],
139+
"^/_mgmt/health": ["GET"]
138140
}
139141
```
140142

helm/values.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,9 @@ env:
9595
"^/api.html$": ["GET"],
9696
"^/api$": ["GET"],
9797
"^/docs/oauth2-redirect": ["GET"],
98-
"^/healthz": ["GET"]
98+
"^/healthz": ["GET"],
99+
"^/_mgmt/ping": ["GET"],
100+
"^/_mgmt/health": ["GET"]
99101
}
100102
101103
@@ -110,4 +112,4 @@ serviceAccount:
110112
name: ""
111113
# Image pull secrets to add to the service account
112114
imagePullSecrets: []
113-
# - name: my-registry-secret
115+
# - name: my-registry-secret

src/stac_auth_proxy/config.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,8 @@ class Settings(BaseSettings):
7777
r"^/conformance$": ["GET"],
7878
r"^/docs/oauth2-redirect": ["GET"],
7979
r"^/healthz": ["GET"],
80+
r"^/_mgmt/ping": ["GET"],
81+
r"^/_mgmt/health": ["GET"]
8082
}
8183
private_endpoints: EndpointMethodsWithScope = {
8284
# https://github.com/stac-api-extensions/collection-transaction/blob/v1.0.0-beta.1/README.md#methods

0 commit comments

Comments
 (0)