This commit is contained in:
2026-11-11 13:53:51 +03:00
parent 20afc2c790
commit 4afb2ac7b9
138 changed files with 12659 additions and 56 deletions
+15
View File
@@ -0,0 +1,15 @@
global
ssl-default-bind-options ssl-min-ver TLSv1.2 no-tls-tickets
maxconn 128
defaults
timeout connect 2s
timeout client 30s
timeout server 30s
retries 0
listen streams
mode tcp
bind :6380 ssl crt /pki/service.pem ca-file /pki/ca.crt verify required
tcp-request content reject unless { ssl_c_s_dn(CN) -m str dispatcher worker }
server redis 127.0.0.1:6379
+27
View File
@@ -0,0 +1,27 @@
global
ssl-default-bind-options ssl-min-ver TLSv1.2 no-tls-tickets
maxconn 128
defaults
timeout connect 2s
timeout client 30s
timeout server 30s
retries 0
listen ingest
mode http
bind :4318 ssl crt /pki/service.pem ca-file /pki/ca.crt verify required
http-request deny unless { ssl_c_s_dn(CN) -m str api worker dispatcher reconciler } { method POST } { path -m str /v1/logs /v1/traces /v1/metrics }
server local 127.0.0.1:14318
listen app_metrics
mode http
bind :8889 ssl crt /pki/service.pem ca-file /pki/ca.crt verify required
http-request deny unless { ssl_c_s_dn(CN) -m str scraper } { method GET } { path -m str /metrics }
server local 127.0.0.1:18889
listen collector_metrics
mode http
bind :8888 ssl crt /pki/service.pem ca-file /pki/ca.crt verify required
http-request deny unless { ssl_c_s_dn(CN) -m str scraper } { method GET } { path -m str /metrics }
server local 127.0.0.1:18888
+17
View File
@@ -0,0 +1,17 @@
global
ssl-default-bind-options ssl-min-ver TLSv1.2 no-tls-tickets
maxconn 128
defaults
timeout connect 2s
timeout client 30s
timeout server 30s
retries 0
listen logs
mode http
bind :3100 ssl crt /pki/service.pem ca-file /pki/ca.crt verify required
http-request allow if { ssl_c_s_dn(CN) -m str collector-export } { ssl_c_der,sha2(256),hex,lower -m str -f /pki/collector-fingerprint } { method POST } { path -m str /otlp/v1/logs }
http-request allow if { ssl_c_s_dn(CN) -m str grafana operator } { method GET } { path_beg /loki/api/v1/ }
http-request deny
server local 127.0.0.1:13100
+15
View File
@@ -0,0 +1,15 @@
global
ssl-default-bind-options ssl-min-ver TLSv1.2 no-tls-tickets
maxconn 128
defaults
timeout connect 2s
timeout client 30s
timeout server 30s
retries 0
listen query
mode http
bind :9090 ssl crt /pki/service.pem ca-file /pki/ca.crt verify required
http-request deny unless { ssl_c_s_dn(CN) -m str grafana operator } { method GET POST } { path -m reg ^/api/v1/(query|query_range|labels|series|label/[^/]+/values|status/buildinfo|alerts|rules)$ }
server local 127.0.0.1:19090
+21
View File
@@ -0,0 +1,21 @@
global
ssl-default-bind-options ssl-min-ver TLSv1.2 no-tls-tickets
maxconn 128
defaults
timeout connect 2s
timeout client 30s
timeout server 30s
retries 0
listen query
mode http
bind :3200 ssl crt /pki/service.pem ca-file /pki/ca.crt verify required
http-request deny unless { ssl_c_s_dn(CN) -m str grafana operator } { method GET } { path_beg /api/ }
server local 127.0.0.1:13200
listen ingest
mode http
bind :4318 ssl crt /pki/service.pem ca-file /pki/ca.crt verify required
http-request deny unless { ssl_c_s_dn(CN) -m str collector-export } { ssl_c_der,sha2(256),hex,lower -m str -f /pki/collector-fingerprint } { method POST } { path -m str /v1/traces }
server local 127.0.0.1:14318