mirror of
https://github.com/zabbix/zabbix-docker.git
synced 2025-06-30 14:51:11 +02:00
Added ZBX_ALLOW_HTTP_AUTH parameter and php-curl package
This commit is contained in:
@ -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 \
|
||||
|
@ -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;
|
||||
|
@ -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"
|
||||
|
Reference in New Issue
Block a user