Skip to content

Commit 09932c7

Browse files
committed
feat: Add health check endpoint and refine Nginx basic authentication for Loki ingress paths.
1 parent 4701d7b commit 09932c7

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

lgtm-stack/terraform/values/loki-values.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,10 +168,21 @@ gateway:
168168
access_log /dev/stderr main;
169169
server {
170170
listen 8080;
171+
172+
# Health check path (must be open for k8s probes)
173+
location = / {
174+
return 200 'OK';
175+
auth_basic off;
176+
}
177+
178+
# Readiness and push paths (no auth needed for readiness/push)
171179
location ~ ^/(loki/api/v1/push|loki/api/v1/tail|ready|log) {
172180
proxy_pass http://monitoring-loki-distributor.observability.svc.cluster.local:3100;
173181
proxy_http_version 1.1;
182+
auth_basic off;
174183
}
184+
185+
# Read path (BasicAuth required)
175186
location / {
176187
auth_basic "Loki Tenant Authentication";
177188
auth_basic_user_file /etc/nginx/secrets/.htpasswd;

0 commit comments

Comments
 (0)