Added IgnoreURLCertErrors parameter for web-service

This commit is contained in:
Alexey Pustovalov 2022-04-20 20:39:43 +03:00
parent 37991418c0
commit d104a9f9ac
11 changed files with 16 additions and 0 deletions

View File

@ -91,6 +91,7 @@ ZBX_TLSACCEPT=unencrypted
ZBX_TLSCAFILE= ZBX_TLSCAFILE=
ZBX_TLSCERTFILE= ZBX_TLSCERTFILE=
ZBX_TLSKEYFILE= ZBX_TLSKEYFILE=
ZBX_IGNOREURLCERTERRORS=0
``` ```
Default values of these variables are specified after equal sign. Default values of these variables are specified after equal sign.

View File

@ -105,6 +105,8 @@ prepare_zbx_web_service_config() {
update_config_var $ZBX_CONFIG "TLSCertFile" "${ZBX_TLSCERTFILE}" update_config_var $ZBX_CONFIG "TLSCertFile" "${ZBX_TLSCERTFILE}"
update_config_var $ZBX_CONFIG "TLSKeyFile" "${ZBX_TLSKEYFILE}" update_config_var $ZBX_CONFIG "TLSKeyFile" "${ZBX_TLSKEYFILE}"
update_config_var $ZBX_CONFIG "IgnoreURLCertErrors" "${ZBX_IGNOREURLCERTERRORS}"
} }
prepare_web_service() { prepare_web_service() {

View File

@ -91,6 +91,7 @@ ZBX_TLSACCEPT=unencrypted
ZBX_TLSCAFILE= ZBX_TLSCAFILE=
ZBX_TLSCERTFILE= ZBX_TLSCERTFILE=
ZBX_TLSKEYFILE= ZBX_TLSKEYFILE=
ZBX_IGNOREURLCERTERRORS=0
``` ```
Default values of these variables are specified after equal sign. Default values of these variables are specified after equal sign.

View File

@ -105,6 +105,8 @@ prepare_zbx_web_service_config() {
update_config_var $ZBX_CONFIG "TLSCertFile" "${ZBX_TLSCERTFILE}" update_config_var $ZBX_CONFIG "TLSCertFile" "${ZBX_TLSCERTFILE}"
update_config_var $ZBX_CONFIG "TLSKeyFile" "${ZBX_TLSKEYFILE}" update_config_var $ZBX_CONFIG "TLSKeyFile" "${ZBX_TLSKEYFILE}"
update_config_var $ZBX_CONFIG "IgnoreURLCertErrors" "${ZBX_IGNOREURLCERTERRORS}"
} }
prepare_web_service() { prepare_web_service() {

View File

@ -91,6 +91,7 @@ ZBX_TLSACCEPT=unencrypted
ZBX_TLSCAFILE= ZBX_TLSCAFILE=
ZBX_TLSCERTFILE= ZBX_TLSCERTFILE=
ZBX_TLSKEYFILE= ZBX_TLSKEYFILE=
ZBX_IGNOREURLCERTERRORS=0
``` ```
Default values of these variables are specified after equal sign. Default values of these variables are specified after equal sign.

View File

@ -105,6 +105,8 @@ prepare_zbx_web_service_config() {
update_config_var $ZBX_CONFIG "TLSCertFile" "${ZBX_TLSCERTFILE}" update_config_var $ZBX_CONFIG "TLSCertFile" "${ZBX_TLSCERTFILE}"
update_config_var $ZBX_CONFIG "TLSKeyFile" "${ZBX_TLSKEYFILE}" update_config_var $ZBX_CONFIG "TLSKeyFile" "${ZBX_TLSKEYFILE}"
update_config_var $ZBX_CONFIG "IgnoreURLCertErrors" "${ZBX_IGNOREURLCERTERRORS}"
} }
prepare_web_service() { prepare_web_service() {

View File

@ -91,6 +91,7 @@ ZBX_TLSACCEPT=unencrypted
ZBX_TLSCAFILE= ZBX_TLSCAFILE=
ZBX_TLSCERTFILE= ZBX_TLSCERTFILE=
ZBX_TLSKEYFILE= ZBX_TLSKEYFILE=
ZBX_IGNOREURLCERTERRORS=0
``` ```
Default values of these variables are specified after equal sign. Default values of these variables are specified after equal sign.

View File

@ -105,6 +105,8 @@ prepare_zbx_web_service_config() {
update_config_var $ZBX_CONFIG "TLSCertFile" "${ZBX_TLSCERTFILE}" update_config_var $ZBX_CONFIG "TLSCertFile" "${ZBX_TLSCERTFILE}"
update_config_var $ZBX_CONFIG "TLSKeyFile" "${ZBX_TLSKEYFILE}" update_config_var $ZBX_CONFIG "TLSKeyFile" "${ZBX_TLSKEYFILE}"
update_config_var $ZBX_CONFIG "IgnoreURLCertErrors" "${ZBX_IGNOREURLCERTERRORS}"
} }
prepare_web_service() { prepare_web_service() {

View File

@ -91,6 +91,7 @@ ZBX_TLSACCEPT=unencrypted
ZBX_TLSCAFILE= ZBX_TLSCAFILE=
ZBX_TLSCERTFILE= ZBX_TLSCERTFILE=
ZBX_TLSKEYFILE= ZBX_TLSKEYFILE=
ZBX_IGNOREURLCERTERRORS=0
``` ```
Default values of these variables are specified after equal sign. Default values of these variables are specified after equal sign.

View File

@ -105,6 +105,8 @@ prepare_zbx_web_service_config() {
update_config_var $ZBX_CONFIG "TLSCertFile" "${ZBX_TLSCERTFILE}" update_config_var $ZBX_CONFIG "TLSCertFile" "${ZBX_TLSCERTFILE}"
update_config_var $ZBX_CONFIG "TLSKeyFile" "${ZBX_TLSKEYFILE}" update_config_var $ZBX_CONFIG "TLSKeyFile" "${ZBX_TLSKEYFILE}"
update_config_var $ZBX_CONFIG "IgnoreURLCertErrors" "${ZBX_IGNOREURLCERTERRORS}"
} }
prepare_web_service() { prepare_web_service() {

View File

@ -7,3 +7,4 @@ ZBX_ALLOWEDIP=zabbix-server
# ZBX_TLSCAFILE= # ZBX_TLSCAFILE=
# ZBX_TLSCERTFILE= # ZBX_TLSCERTFILE=
# ZBX_TLSKEYFILE= # ZBX_TLSKEYFILE=
# ZBX_IGNOREURLCERTERRORS=0