Added ZBX_ALLOW_HTTP_AUTH parameter and php-curl package

This commit is contained in:
Alexey Pustovalov
2024-04-27 21:21:44 +09:00
parent 72f60d44dc
commit b35ca70fcc
63 changed files with 131 additions and 2 deletions

View File

@ -42,6 +42,7 @@ RUN --mount=type=cache,target=/var/lib/apt/,sharing=locked \
locales \
libldap-common \
php8.3-bcmath \
php8.3-curl \
php8.3-gd \
php8.3-ldap \
php8.3-mbstring \

View File

@ -103,3 +103,5 @@ else {
$sso_settings = str_replace("'","\"",getenv('ZBX_SSO_SETTINGS'));
$SSO['SETTINGS'] = (json_decode($sso_settings)) ? json_decode($sso_settings, true) : array();
$ALLOW_HTTP_AUTH = getenv('ZBX_ALLOW_HTTP_AUTH') == 'true' ? true: false;

View File

@ -208,6 +208,9 @@ prepare_zbx_web_config() {
export ZBX_SSO_SP_CERT=${ZBX_SSO_SP_CERT}
export ZBX_SSO_IDP_CERT=${ZBX_SSO_IDP_CERT}
: ${ZBX_ALLOW_HTTP_AUTH:="true"}
export ZBX_ALLOW_HTTP_AUTH=${ZBX_ALLOW_HTTP_AUTH}
if [ -n "${ZBX_SESSION_NAME}" ]; then
cp "$ZABBIX_WWW_ROOT/include/defines.inc.php" "/tmp/defines.inc.php_tmp"
sed "/ZBX_SESSION_NAME/s/'[^']*'/'${ZBX_SESSION_NAME}'/2" "/tmp/defines.inc.php_tmp" > "$ZABBIX_WWW_ROOT/include/defines.inc.php"