# HAProxy 3.2; Loki HTTP and gRPC remain on loopback. global log stdout format raw local0 maxconn 512 hard-stop-after 30s tune.ssl.cachesize 0 ssl-default-bind-options ssl-min-ver TLSv1.2 no-tls-tickets defaults mode http log global log-format "%ST %Tt %b" option dontlognull option http-server-close timeout connect 2s timeout client 30s timeout server 30s timeout http-request 5s timeout http-keep-alive 2s frontend loki_https bind :3100 ssl crt /run/identity/current/tls.pem ca-file /run/identity/current/ca.crt crl-file /run/identity/current/ca.crl verify required acl collector ssl_c_s_dn(CN) -m str collector acl grafana ssl_c_s_dn(CN) -m str grafana acl prometheus ssl_c_s_dn(CN) -m str prometheus acl operator ssl_c_s_dn(CN) -m str operator acl read_method method GET acl write_method method POST acl query_method method GET POST acl ingest_path path -m str /otlp/v1/logs /loki/api/v1/push acl query_path path -m str /loki/api/v1/query /loki/api/v1/query_range /loki/api/v1/labels /loki/api/v1/series acl label_values path -m reg ^/loki/api/v1/label/[A-Za-z_][A-Za-z0-9_]*/values$ acl explore_path path -m str /loki/api/v1/index/stats /loki/api/v1/index/volume /loki/api/v1/index/volume_range /loki/api/v1/patterns /loki/api/v1/detected_fields /loki/api/v1/detected_labels acl field_values path -m reg ^/loki/api/v1/detected_field/[A-Za-z_][A-Za-z0-9_]*/values$ acl health_path path -m str /metrics /ready acl status_path path -m str /loki/api/v1/status/buildinfo /config /services /ring # Preserve the existing single-tenant store; a client cannot select a tenant. http-request set-header X-Scope-OrgID fake http-request allow if collector write_method ingest_path http-request allow if grafana query_method query_path http-request allow if grafana read_method label_values http-request allow if grafana read_method explore_path http-request allow if grafana read_method field_values http-request allow if prometheus read_method health_path http-request allow if operator query_method query_path http-request allow if operator read_method label_values http-request allow if operator read_method explore_path http-request allow if operator read_method field_values http-request allow if operator read_method health_path http-request allow if operator read_method status_path # Collector cannot query; Grafana cannot push, delete or administer. http-request deny deny_status 403 default_backend loki_private backend loki_private server local 127.0.0.1:13100