Skip to content

Commit

Permalink
Fix the TLS YAML format error in Manual (#289)
Browse files Browse the repository at this point in the history
* fix the TLS yaml format error

* minor fix
  • Loading branch information
haoel authored Feb 20, 2023
1 parent c7376df commit 787b337
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 16 deletions.
18 changes: 10 additions & 8 deletions docs/Manual.md
Original file line number Diff line number Diff line change
Expand Up @@ -1018,20 +1018,22 @@ TLS ping to remote endpoint, can probe for revoked or expired certificates
```YAML
tls:
- name: expired test
- name: expired test
host: expired.badssl.com:443
proxy: socks5://proxy.server:1080 # Optional. Only support socks5.
# Also support the `ALL_PROXY` environment.
insecure_skip_verify: true # dont check cert validity
expire_skip_verify: true # dont check cert expire date
alert_expire_before: 168h # alert if cert expire date is before X, the value is a Duration, see https://pkg.go.dev/time#ParseDuration. example: 1h, 1m, 1s. expire_skip_verify must be false to use this feature.
# Also support the `ALL_PROXY` environment.
insecure_skip_verify: true # don't check cert validity
expire_skip_verify: true # don't check cert expire date
alert_expire_before: 168h # alert if cert expire date is before X, the value is a Duration,
# see https://pkg.go.dev/time#ParseDuration. example: 1h, 1m, 1s.
# expire_skip_verify must be false to use this feature.
# root_ca_pem_path: /path/to/root/ca.pem # ignore if root_ca_pem is present
# root_ca_pem: |
# -----BEGIN CERTIFICATE-----
- name: untrust test
- name: untrust test
host: untrusted-root.badssl.com:443
# insecure_skip_verify: true # dont check cert validity
# expire_skip_verify: true # dont check cert expire date
# insecure_skip_verify: true # don't check cert validity
# expire_skip_verify: true # don't check cert expire date
# root_ca_pem_path: /path/to/root/ca.pem # ignore if root_ca_pem is present
# root_ca_pem: |
# -----BEGIN CERTIFICATE-----
Expand Down
18 changes: 10 additions & 8 deletions resources/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -142,20 +142,22 @@ http: # http probes
# --------------------- TLS Probe Configuration ---------------------
#
# tls:
# - name: expired test
# - name: expired test
# host: expired.badssl.com:443
# proxy: socks5://proxy.server:1080 # Optional. Only support socks5.
# # Also support the `ALL_PROXY` environment.
# insecure_skip_verify: true # dont check cert validity
# expire_skip_verify: true # dont check cert expire date
# alert_expire_before: 168h # alert if cert expire date is before X, the value is a Duration, see https://pkg.go.dev/time#ParseDuration. example: 1h, 1m, 1s. expire_skip_verify must be false to use this feature.
# # Also support the `ALL_PROXY` environment.
# insecure_skip_verify: true # don't check cert validity
# expire_skip_verify: true # don't check cert expire date
# alert_expire_before: 168h # alert if cert expire date is before X, the value is a Duration,
# # see https://pkg.go.dev/time#ParseDuration. example: 1h, 1m, 1s.
# # expire_skip_verify must be false to use this feature.
# # root_ca_pem_path: /path/to/root/ca.pem # ignore if root_ca_pem is present
# # root_ca_pem: |
# # -----BEGIN CERTIFICATE-----
# - name: untrust test
# - name: untrust test
# host: untrusted-root.badssl.com:443
# # insecure_skip_verify: true # dont check cert validity
# # expire_skip_verify: true # dont check cert expire date
# # insecure_skip_verify: true # don't check cert validity
# # expire_skip_verify: true # don't check cert expire date
# # root_ca_pem_path: /path/to/root/ca.pem # ignore if root_ca_pem is present
# # root_ca_pem: |
# # -----BEGIN CERTIFICATE-----
Expand Down

0 comments on commit 787b337

Please sign in to comment.