Skip to content

Commit e4696d3

Browse files
committed
NGINXaaS: add skip tls verification option to otlp exporter
For testing purposes, it makes life easier to configure whether or not to skip TLS verification in cases of self-signed certificates.
1 parent e745a32 commit e4696d3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

internal/collector/otelcol.tmpl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,7 @@ exporters:
156156
tls:
157157
insecure: {{ if .TLS -}}false{{ else -}}true{{- end }}
158158
{{- if .TLS }}
159+
insecure_skip_verify: {{ .TLS.SkipVerify }}
159160
{{ if gt (len .TLS.Ca) 0 -}}ca_file: "{{- .TLS.Ca -}}"{{- end }}
160161
{{ if gt (len .TLS.Cert) 0 -}}cert_file: "{{- .TLS.Cert -}}"{{- end }}
161162
{{ if gt (len .TLS.Key) 0 -}}key_file: "{{- .TLS.Key -}}"{{- end }}

0 commit comments

Comments
 (0)