36 lines
866 B
YAML
36 lines
866 B
YAML
|
|
modules:
|
|||
|
|
# HTTP 200 探测 (含 TLS 证书检查)
|
|||
|
|
http_2xx:
|
|||
|
|
prober: http
|
|||
|
|
timeout: 10s
|
|||
|
|
http:
|
|||
|
|
valid_http_versions: ["HTTP/1.1", "HTTP/2.0"]
|
|||
|
|
valid_status_codes: [200, 204]
|
|||
|
|
method: GET
|
|||
|
|
no_follow_redirects: false
|
|||
|
|
fail_if_ssl: false
|
|||
|
|
fail_if_not_ssl: false
|
|||
|
|
tls_config:
|
|||
|
|
insecure_skip_verify: false
|
|||
|
|
preferred_ip_protocol: "ip4"
|
|||
|
|
|
|||
|
|
# TCP + TLS 证书专项检查 (只验证证书,不关心 HTTP 响应)
|
|||
|
|
tcp_tls:
|
|||
|
|
prober: tcp
|
|||
|
|
timeout: 10s
|
|||
|
|
tcp:
|
|||
|
|
tls: true
|
|||
|
|
tls_config:
|
|||
|
|
insecure_skip_verify: false
|
|||
|
|
|
|||
|
|
# 内网 HTTP 探测 (不验证 TLS,用于内部服务)
|
|||
|
|
http_internal:
|
|||
|
|
prober: http
|
|||
|
|
timeout: 5s
|
|||
|
|
http:
|
|||
|
|
valid_http_versions: ["HTTP/1.1", "HTTP/2.0"]
|
|||
|
|
valid_status_codes: [200]
|
|||
|
|
method: GET
|
|||
|
|
tls_config:
|
|||
|
|
insecure_skip_verify: true
|