forked from mtusi2026/mtusi2026lab7
17 lines
599 B
INI
17 lines
599 B
INI
defaults
|
|
mode http
|
|
timeout connect 2s
|
|
timeout client 30s
|
|
timeout server 30s
|
|
retries 0
|
|
|
|
frontend listener-3100
|
|
bind :3100 ssl crt /run/identity/server.pem ca-file /run/trust/ca.crt verify required ssl-min-ver TLSv1.2
|
|
http-request allow if { ssl_c_s_dn(cn) -m str collector-export } { method POST } { path /otlp/v1/logs }
|
|
http-request allow if { ssl_c_s_dn(cn) -m str grafana-query } { path_beg /loki/api/v1/ } !{ path /loki/api/v1/push /loki/api/v1/delete }
|
|
http-request deny
|
|
default_backend local-3100
|
|
|
|
backend local-3100
|
|
server localhost 127.0.0.1:13100
|