mirror of
https://github.com/zabbix/zabbix-docker.git
synced 2024-11-22 15:53:35 +01:00
Merge pull request #1183 from zabbix/security_patches
Updated Zabbix web-frontend configuration file
This commit is contained in:
parent
8466fff198
commit
2c3d1013dd
@ -36,7 +36,7 @@ if (file_exists('/etc/zabbix/web/certs/vault.crt')) {
|
||||
$DB['VAULT_CERT_FILE'] = file_exists('/etc/zabbix/web/certs/vault.crt');
|
||||
}
|
||||
elseif (file_exists(getenv('ZBX_VAULTCERTFILE'))) {
|
||||
$DB['VAULT_CERT_FILE'] = $DB['VAULT_CERT_FILE'];
|
||||
$DB['VAULT_CERT_FILE'] = getenv('ZBX_VAULTCERTFILE');
|
||||
}
|
||||
else {
|
||||
$DB['VAULT_CERT_FILE'] = '';
|
||||
|
@ -36,7 +36,7 @@ if (file_exists('/etc/zabbix/web/certs/vault.crt')) {
|
||||
$DB['VAULT_CERT_FILE'] = file_exists('/etc/zabbix/web/certs/vault.crt');
|
||||
}
|
||||
elseif (file_exists(getenv('ZBX_VAULTCERTFILE'))) {
|
||||
$DB['VAULT_CERT_FILE'] = $DB['VAULT_CERT_FILE'];
|
||||
$DB['VAULT_CERT_FILE'] = getenv('ZBX_VAULTCERTFILE');
|
||||
}
|
||||
else {
|
||||
$DB['VAULT_CERT_FILE'] = '';
|
||||
|
@ -36,7 +36,7 @@ if (file_exists('/etc/zabbix/web/certs/vault.crt')) {
|
||||
$DB['VAULT_CERT_FILE'] = file_exists('/etc/zabbix/web/certs/vault.crt');
|
||||
}
|
||||
elseif (file_exists(getenv('ZBX_VAULTCERTFILE'))) {
|
||||
$DB['VAULT_CERT_FILE'] = $DB['VAULT_CERT_FILE'];
|
||||
$DB['VAULT_CERT_FILE'] = getenv('ZBX_VAULTCERTFILE');
|
||||
}
|
||||
else {
|
||||
$DB['VAULT_CERT_FILE'] = '';
|
||||
|
@ -36,7 +36,7 @@ if (file_exists('/etc/zabbix/web/certs/vault.crt')) {
|
||||
$DB['VAULT_CERT_FILE'] = file_exists('/etc/zabbix/web/certs/vault.crt');
|
||||
}
|
||||
elseif (file_exists(getenv('ZBX_VAULTCERTFILE'))) {
|
||||
$DB['VAULT_CERT_FILE'] = $DB['VAULT_CERT_FILE'];
|
||||
$DB['VAULT_CERT_FILE'] = getenv('ZBX_VAULTCERTFILE');
|
||||
}
|
||||
else {
|
||||
$DB['VAULT_CERT_FILE'] = '';
|
||||
|
@ -36,7 +36,7 @@ if (file_exists('/etc/zabbix/web/certs/vault.crt')) {
|
||||
$DB['VAULT_CERT_FILE'] = file_exists('/etc/zabbix/web/certs/vault.crt');
|
||||
}
|
||||
elseif (file_exists(getenv('ZBX_VAULTCERTFILE'))) {
|
||||
$DB['VAULT_CERT_FILE'] = $DB['VAULT_CERT_FILE'];
|
||||
$DB['VAULT_CERT_FILE'] = getenv('ZBX_VAULTCERTFILE');
|
||||
}
|
||||
else {
|
||||
$DB['VAULT_CERT_FILE'] = '';
|
||||
|
@ -36,7 +36,7 @@ if (file_exists('/etc/zabbix/web/certs/vault.crt')) {
|
||||
$DB['VAULT_CERT_FILE'] = file_exists('/etc/zabbix/web/certs/vault.crt');
|
||||
}
|
||||
elseif (file_exists(getenv('ZBX_VAULTCERTFILE'))) {
|
||||
$DB['VAULT_CERT_FILE'] = $DB['VAULT_CERT_FILE'];
|
||||
$DB['VAULT_CERT_FILE'] = getenv('ZBX_VAULTCERTFILE');
|
||||
}
|
||||
else {
|
||||
$DB['VAULT_CERT_FILE'] = '';
|
||||
|
@ -36,7 +36,7 @@ if (file_exists('/etc/zabbix/web/certs/vault.crt')) {
|
||||
$DB['VAULT_CERT_FILE'] = file_exists('/etc/zabbix/web/certs/vault.crt');
|
||||
}
|
||||
elseif (file_exists(getenv('ZBX_VAULTCERTFILE'))) {
|
||||
$DB['VAULT_CERT_FILE'] = $DB['VAULT_CERT_FILE'];
|
||||
$DB['VAULT_CERT_FILE'] = getenv('ZBX_VAULTCERTFILE');
|
||||
}
|
||||
else {
|
||||
$DB['VAULT_CERT_FILE'] = '';
|
||||
|
@ -36,7 +36,7 @@ if (file_exists('/etc/zabbix/web/certs/vault.crt')) {
|
||||
$DB['VAULT_CERT_FILE'] = file_exists('/etc/zabbix/web/certs/vault.crt');
|
||||
}
|
||||
elseif (file_exists(getenv('ZBX_VAULTCERTFILE'))) {
|
||||
$DB['VAULT_CERT_FILE'] = $DB['VAULT_CERT_FILE'];
|
||||
$DB['VAULT_CERT_FILE'] = getenv('ZBX_VAULTCERTFILE');
|
||||
}
|
||||
else {
|
||||
$DB['VAULT_CERT_FILE'] = '';
|
||||
|
@ -36,7 +36,7 @@ if (file_exists('/etc/zabbix/web/certs/vault.crt')) {
|
||||
$DB['VAULT_CERT_FILE'] = file_exists('/etc/zabbix/web/certs/vault.crt');
|
||||
}
|
||||
elseif (file_exists(getenv('ZBX_VAULTCERTFILE'))) {
|
||||
$DB['VAULT_CERT_FILE'] = $DB['VAULT_CERT_FILE'];
|
||||
$DB['VAULT_CERT_FILE'] = getenv('ZBX_VAULTCERTFILE');
|
||||
}
|
||||
else {
|
||||
$DB['VAULT_CERT_FILE'] = '';
|
||||
|
@ -36,7 +36,7 @@ if (file_exists('/etc/zabbix/web/certs/vault.crt')) {
|
||||
$DB['VAULT_CERT_FILE'] = file_exists('/etc/zabbix/web/certs/vault.crt');
|
||||
}
|
||||
elseif (file_exists(getenv('ZBX_VAULTCERTFILE'))) {
|
||||
$DB['VAULT_CERT_FILE'] = $DB['VAULT_CERT_FILE'];
|
||||
$DB['VAULT_CERT_FILE'] = getenv('ZBX_VAULTCERTFILE');
|
||||
}
|
||||
else {
|
||||
$DB['VAULT_CERT_FILE'] = '';
|
||||
|
@ -36,7 +36,7 @@ if (file_exists('/etc/zabbix/web/certs/vault.crt')) {
|
||||
$DB['VAULT_CERT_FILE'] = file_exists('/etc/zabbix/web/certs/vault.crt');
|
||||
}
|
||||
elseif (file_exists(getenv('ZBX_VAULTCERTFILE'))) {
|
||||
$DB['VAULT_CERT_FILE'] = $DB['VAULT_CERT_FILE'];
|
||||
$DB['VAULT_CERT_FILE'] = getenv('ZBX_VAULTCERTFILE');
|
||||
}
|
||||
else {
|
||||
$DB['VAULT_CERT_FILE'] = '';
|
||||
|
@ -36,7 +36,7 @@ if (file_exists('/etc/zabbix/web/certs/vault.crt')) {
|
||||
$DB['VAULT_CERT_FILE'] = file_exists('/etc/zabbix/web/certs/vault.crt');
|
||||
}
|
||||
elseif (file_exists(getenv('ZBX_VAULTCERTFILE'))) {
|
||||
$DB['VAULT_CERT_FILE'] = $DB['VAULT_CERT_FILE'];
|
||||
$DB['VAULT_CERT_FILE'] = getenv('ZBX_VAULTCERTFILE');
|
||||
}
|
||||
else {
|
||||
$DB['VAULT_CERT_FILE'] = '';
|
||||
|
@ -36,7 +36,7 @@ if (file_exists('/etc/zabbix/web/certs/vault.crt')) {
|
||||
$DB['VAULT_CERT_FILE'] = file_exists('/etc/zabbix/web/certs/vault.crt');
|
||||
}
|
||||
elseif (file_exists(getenv('ZBX_VAULTCERTFILE'))) {
|
||||
$DB['VAULT_CERT_FILE'] = $DB['VAULT_CERT_FILE'];
|
||||
$DB['VAULT_CERT_FILE'] = getenv('ZBX_VAULTCERTFILE');
|
||||
}
|
||||
else {
|
||||
$DB['VAULT_CERT_FILE'] = '';
|
||||
|
@ -36,7 +36,7 @@ if (file_exists('/etc/zabbix/web/certs/vault.crt')) {
|
||||
$DB['VAULT_CERT_FILE'] = file_exists('/etc/zabbix/web/certs/vault.crt');
|
||||
}
|
||||
elseif (file_exists(getenv('ZBX_VAULTCERTFILE'))) {
|
||||
$DB['VAULT_CERT_FILE'] = $DB['VAULT_CERT_FILE'];
|
||||
$DB['VAULT_CERT_FILE'] = getenv('ZBX_VAULTCERTFILE');
|
||||
}
|
||||
else {
|
||||
$DB['VAULT_CERT_FILE'] = '';
|
||||
|
@ -36,7 +36,7 @@ if (file_exists('/etc/zabbix/web/certs/vault.crt')) {
|
||||
$DB['VAULT_CERT_FILE'] = file_exists('/etc/zabbix/web/certs/vault.crt');
|
||||
}
|
||||
elseif (file_exists(getenv('ZBX_VAULTCERTFILE'))) {
|
||||
$DB['VAULT_CERT_FILE'] = $DB['VAULT_CERT_FILE'];
|
||||
$DB['VAULT_CERT_FILE'] = getenv('ZBX_VAULTCERTFILE');
|
||||
}
|
||||
else {
|
||||
$DB['VAULT_CERT_FILE'] = '';
|
||||
|
@ -36,7 +36,7 @@ if (file_exists('/etc/zabbix/web/certs/vault.crt')) {
|
||||
$DB['VAULT_CERT_FILE'] = file_exists('/etc/zabbix/web/certs/vault.crt');
|
||||
}
|
||||
elseif (file_exists(getenv('ZBX_VAULTCERTFILE'))) {
|
||||
$DB['VAULT_CERT_FILE'] = $DB['VAULT_CERT_FILE'];
|
||||
$DB['VAULT_CERT_FILE'] = getenv('ZBX_VAULTCERTFILE');
|
||||
}
|
||||
else {
|
||||
$DB['VAULT_CERT_FILE'] = '';
|
||||
|
@ -36,7 +36,7 @@ if (file_exists('/etc/zabbix/web/certs/vault.crt')) {
|
||||
$DB['VAULT_CERT_FILE'] = file_exists('/etc/zabbix/web/certs/vault.crt');
|
||||
}
|
||||
elseif (file_exists(getenv('ZBX_VAULTCERTFILE'))) {
|
||||
$DB['VAULT_CERT_FILE'] = $DB['VAULT_CERT_FILE'];
|
||||
$DB['VAULT_CERT_FILE'] = getenv('ZBX_VAULTCERTFILE');
|
||||
}
|
||||
else {
|
||||
$DB['VAULT_CERT_FILE'] = '';
|
||||
|
Loading…
Reference in New Issue
Block a user