Files
mtusi2026lab7/infra/security/loki.cfg
T

14 lines
700 B
INI

listen loki
mode http
bind :3100 ssl crt /run/tls/server/service.pem verify required ca-file /run/tls/trust/ca.crt crl-file /run/tls/trust/revoked.crl
acl allowed_identity ssl_c_s_dn(CN) -m str collector-client grafana-client
http-request deny unless allowed_identity
acl ingestion path /otlp/v1/logs
acl collector ssl_c_s_dn(CN) -m str collector-client
http-request deny if ingestion !collector
http-request deny if collector !ingestion
http-request deny if !collector !{ method GET POST }
http-request deny if !collector !{ path_beg /loki/api/v1/ /ready }
http-request deny if !collector { path_beg /loki/api/v1/delete }
server local 127.0.0.1:13100