Added tzdata package to Zabbix components

This commit is contained in:
Alexey Pustovalov 2020-08-29 05:20:45 -04:00
commit c0ecb52340
31 changed files with 317 additions and 18 deletions

View File

@ -24,6 +24,7 @@ RUN set -eux && \
apk add --no-cache --clean-protected \ apk add --no-cache --clean-protected \
tini \ tini \
bash \ bash \
tzdata \
coreutils \ coreutils \
iputils \ iputils \
pcre \ pcre \

View File

@ -25,6 +25,7 @@ RUN set -eux && \
dnf --quiet makecache && \ dnf --quiet makecache && \
dnf -y install --setopt=tsflags=nodocs --setopt=install_weak_deps=False --best \ dnf -y install --setopt=tsflags=nodocs --setopt=install_weak_deps=False --best \
libcurl-minimal \ libcurl-minimal \
tzdata \
openssl-libs && \ openssl-libs && \
curl -L "https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini" -o /sbin/tini && \ curl -L "https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini" -o /sbin/tini && \
curl -L "https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini.asc" -o /tmp/tini.asc && \ curl -L "https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini.asc" -o /tmp/tini.asc && \
@ -38,7 +39,7 @@ RUN set -eux && \
gpg --keyserver "$server" --recv-keys 595E85A6B1B4779EA4DAAEC70B588DFF0527A9B7 && break || : ; \ gpg --keyserver "$server" --recv-keys 595E85A6B1B4779EA4DAAEC70B588DFF0527A9B7 && break || : ; \
done && \ done && \
gpg --batch --verify /tmp/tini.asc /sbin/tini && \ gpg --batch --verify /tmp/tini.asc /sbin/tini && \
rm -r "$GNUPGHOME" /tmp/tini.asc && \ rm -rf "$GNUPGHOME" /tmp/tini.asc && \
chmod +x /sbin/tini && \ chmod +x /sbin/tini && \
dnf -y clean all && \ dnf -y clean all && \
rm -rf /var/cache/yum /var/lib/yum/yumdb/* /usr/lib/udev/hwdb.d/* && \ rm -rf /var/cache/yum /var/lib/yum/yumdb/* /usr/lib/udev/hwdb.d/* && \

View File

@ -26,6 +26,7 @@ RUN set -eux && \
apt-get -y update && \ apt-get -y update && \
DEBIAN_FRONTEND=noninteractive apt-get -y --no-install-recommends install \ DEBIAN_FRONTEND=noninteractive apt-get -y --no-install-recommends install \
tini \ tini \
tzdata \
ca-certificates \ ca-certificates \
libssl1.1 \ libssl1.1 \
libcurl4 \ libcurl4 \

View File

@ -458,6 +458,9 @@ metadata:
tier: agent tier: agent
namespace: zabbix namespace: zabbix
spec: spec:
selector:
matchLabels:
name: zabbix-agent
updateStrategy: updateStrategy:
type: RollingUpdate type: RollingUpdate
rollingUpdate: rollingUpdate:

View File

@ -56,7 +56,7 @@ RUN set -eux && \
gpg --keyserver "$server" --recv-keys 595E85A6B1B4779EA4DAAEC70B588DFF0527A9B7 && break || : ; \ gpg --keyserver "$server" --recv-keys 595E85A6B1B4779EA4DAAEC70B588DFF0527A9B7 && break || : ; \
done && \ done && \
gpg --batch --verify /tmp/tini.asc /sbin/tini && \ gpg --batch --verify /tmp/tini.asc /sbin/tini && \
rm -r "$GNUPGHOME" /tmp/tini.asc && \ rm -rf "$GNUPGHOME" /tmp/tini.asc && \
chmod +x /sbin/tini && \ chmod +x /sbin/tini && \
dnf -y clean all && \ dnf -y clean all && \
rm -rf /var/cache/yum /var/lib/yum/yumdb/* /usr/lib/udev/hwdb.d/* && \ rm -rf /var/cache/yum /var/lib/yum/yumdb/* /usr/lib/udev/hwdb.d/* && \

View File

@ -55,7 +55,7 @@ RUN set -eux && \
gpg --keyserver "$server" --recv-keys 595E85A6B1B4779EA4DAAEC70B588DFF0527A9B7 && break || : ; \ gpg --keyserver "$server" --recv-keys 595E85A6B1B4779EA4DAAEC70B588DFF0527A9B7 && break || : ; \
done && \ done && \
gpg --batch --verify /tmp/tini.asc /sbin/tini && \ gpg --batch --verify /tmp/tini.asc /sbin/tini && \
rm -r "$GNUPGHOME" /tmp/tini.asc && \ rm -rf "$GNUPGHOME" /tmp/tini.asc && \
chmod +x /sbin/tini && \ chmod +x /sbin/tini && \
dnf -y clean all && \ dnf -y clean all && \
rm -rf /var/cache/yum /var/lib/yum/yumdb/* /usr/lib/udev/hwdb.d/* && \ rm -rf /var/cache/yum /var/lib/yum/yumdb/* /usr/lib/udev/hwdb.d/* && \

View File

@ -36,6 +36,7 @@ RUN set -eux && \
tini \ tini \
bash \ bash \
fping \ fping \
tzdata \
iputils \ iputils \
libcurl \ libcurl \
libevent \ libevent \

View File

@ -35,6 +35,7 @@ RUN set -eux && \
dnf --quiet makecache && \ dnf --quiet makecache && \
dnf -y install --setopt=tsflags=nodocs http://repo.zabbix.com/non-supported/rhel/8/x86_64/fping-3.16-1.el8.x86_64.rpm && \ dnf -y install --setopt=tsflags=nodocs http://repo.zabbix.com/non-supported/rhel/8/x86_64/fping-3.16-1.el8.x86_64.rpm && \
dnf -y install --setopt=tsflags=nodocs --setopt=install_weak_deps=False --best \ dnf -y install --setopt=tsflags=nodocs --setopt=install_weak_deps=False --best \
tzdata \
iputils \ iputils \
traceroute \ traceroute \
libcurl-minimal \ libcurl-minimal \
@ -60,7 +61,7 @@ RUN set -eux && \
gpg --keyserver "$server" --recv-keys 595E85A6B1B4779EA4DAAEC70B588DFF0527A9B7 && break || : ; \ gpg --keyserver "$server" --recv-keys 595E85A6B1B4779EA4DAAEC70B588DFF0527A9B7 && break || : ; \
done && \ done && \
gpg --batch --verify /tmp/tini.asc /sbin/tini && \ gpg --batch --verify /tmp/tini.asc /sbin/tini && \
rm -r "$GNUPGHOME" /tmp/tini.asc && \ rm -rf "$GNUPGHOME" /tmp/tini.asc && \
chmod +x /sbin/tini && \ chmod +x /sbin/tini && \
dnf -y clean all && \ dnf -y clean all && \
rm -rf /var/cache/yum /var/lib/yum/yumdb/* /usr/lib/udev/hwdb.d/* && \ rm -rf /var/cache/yum /var/lib/yum/yumdb/* /usr/lib/udev/hwdb.d/* && \

View File

@ -36,6 +36,7 @@ RUN set -eux && \
apt-get -y update && \ apt-get -y update && \
DEBIAN_FRONTEND=noninteractive apt-get -y --no-install-recommends install \ DEBIAN_FRONTEND=noninteractive apt-get -y --no-install-recommends install \
tini \ tini \
tzdata \
ca-certificates \ ca-certificates \
iputils-ping \ iputils-ping \
traceroute \ traceroute \

View File

@ -36,6 +36,7 @@ RUN set -eux && \
tini \ tini \
bash \ bash \
fping \ fping \
tzdata \
iputils \ iputils \
libcurl \ libcurl \
libevent \ libevent \

View File

@ -36,6 +36,7 @@ RUN set -eux && \
dnf -y install --setopt=tsflags=nodocs https://repo.zabbix.com/non-supported/rhel/8/x86_64/fping-3.16-1.el8.x86_64.rpm && \ dnf -y install --setopt=tsflags=nodocs https://repo.zabbix.com/non-supported/rhel/8/x86_64/fping-3.16-1.el8.x86_64.rpm && \
dnf -y install --setopt=tsflags=nodocs --setopt=install_weak_deps=False --best \ dnf -y install --setopt=tsflags=nodocs --setopt=install_weak_deps=False --best \
iputils \ iputils \
tzdata \
traceroute \ traceroute \
libcurl-minimal \ libcurl-minimal \
libevent \ libevent \
@ -61,7 +62,7 @@ RUN set -eux && \
gpg --keyserver "$server" --recv-keys 595E85A6B1B4779EA4DAAEC70B588DFF0527A9B7 && break || : ; \ gpg --keyserver "$server" --recv-keys 595E85A6B1B4779EA4DAAEC70B588DFF0527A9B7 && break || : ; \
done && \ done && \
gpg --batch --verify /tmp/tini.asc /sbin/tini && \ gpg --batch --verify /tmp/tini.asc /sbin/tini && \
rm -r "$GNUPGHOME" /tmp/tini.asc && \ rm -rf "$GNUPGHOME" /tmp/tini.asc && \
chmod +x /sbin/tini && \ chmod +x /sbin/tini && \
dnf -y clean all && \ dnf -y clean all && \
rm -rf /var/cache/yum /var/lib/yum/yumdb/* /usr/lib/udev/hwdb.d/* && \ rm -rf /var/cache/yum /var/lib/yum/yumdb/* /usr/lib/udev/hwdb.d/* && \

View File

@ -36,6 +36,7 @@ RUN set -eux && \
apt-get -y update && \ apt-get -y update && \
DEBIAN_FRONTEND=noninteractive apt-get -y --no-install-recommends install \ DEBIAN_FRONTEND=noninteractive apt-get -y --no-install-recommends install \
tini \ tini \
tzdata \
ca-certificates \ ca-certificates \
iputils-ping \ iputils-ping \
traceroute \ traceroute \

View File

@ -30,6 +30,7 @@ RUN set -eux && \
zabbix && \ zabbix && \
apk update && \ apk update && \
apk add --clean-protected --no-cache \ apk add --clean-protected --no-cache \
tzdata \
net-snmp \ net-snmp \
supervisor && \ supervisor && \
apk add --no-cache --virtual build-dependencies \ apk add --no-cache --virtual build-dependencies \

View File

@ -30,6 +30,7 @@ RUN set -eux && \
yum --quiet makecache && \ yum --quiet makecache && \
yum -y install epel-release && \ yum -y install epel-release && \
yum -y install --setopt=tsflags=nodocs \ yum -y install --setopt=tsflags=nodocs \
tzdata \
net-snmp \ net-snmp \
supervisor && \ supervisor && \
yum -y install --setopt=tsflags=nodocs \ yum -y install --setopt=tsflags=nodocs \

View File

@ -32,6 +32,7 @@ RUN set -eux && \
zabbix && \ zabbix && \
apt-get -y update && \ apt-get -y update && \
DEBIAN_FRONTEND=noninteractive apt-get -y --no-install-recommends install \ DEBIAN_FRONTEND=noninteractive apt-get -y --no-install-recommends install \
tzdata \
snmp-mibs-downloader \ snmp-mibs-downloader \
snmptrapd \ snmptrapd \
supervisor && \ supervisor && \

View File

@ -166,6 +166,30 @@ The varable is PHP ``max_input_time`` option. By default, value is `300`.
The variable is Zabbix frontend [definition](https://www.zabbix.com/documentation/4.2/manual/web_interface/definitions). String used as the name of the Zabbix frontend session cookie. By default, value is `zbx_sessionid`. The variable is Zabbix frontend [definition](https://www.zabbix.com/documentation/4.2/manual/web_interface/definitions). String used as the name of the Zabbix frontend session cookie. By default, value is `zbx_sessionid`.
### `ZBX_DB_ENCRYPTION`
The variable allows to activate encryption for connections to Zabbix database. Even if no other environment variables are specified, connections will be TLS-encrypted if `ZBX_DB_ENCRYPTION=true` specified. Available since 5.0.0. Disabled by default.
### `ZBX_DB_KEY_FILE`
The variable allows to specify the full path to a valid TLS key file. Available since 5.0.0.
### `ZBX_DB_CERT_FILE`
The variable allows to specify the full path to a valid TLS certificate file. Available since 5.0.0.
### `ZBX_DB_CA_FILE`
The variable allows to specify the full path to a valid TLS certificate authority file. Available since 5.0.0.
### `ZBX_DB_VERIFY_HOST`
The variable allows to activate host verification. Available since 5.0.0.
### `ZBX_DB_CIPHER_LIST`
The variable allows to specify a custom list of valid ciphers. The format of the cipher list must conform to the OpenSSL standard. Available since 5.0.0.
## Allowed volumes for the Zabbix web interface container ## Allowed volumes for the Zabbix web interface container
### ``/etc/ssl/apache2`` ### ``/etc/ssl/apache2``

View File

@ -166,6 +166,30 @@ The varable is PHP ``max_input_time`` option. By default, value is `300`.
The variable is Zabbix frontend [definition](https://www.zabbix.com/documentation/4.2/manual/web_interface/definitions). String used as the name of the Zabbix frontend session cookie. By default, value is `zbx_sessionid`. The variable is Zabbix frontend [definition](https://www.zabbix.com/documentation/4.2/manual/web_interface/definitions). String used as the name of the Zabbix frontend session cookie. By default, value is `zbx_sessionid`.
### `ZBX_DB_ENCRYPTION`
The variable allows to activate encryption for connections to Zabbix database. Even if no other environment variables are specified, connections will be TLS-encrypted if `ZBX_DB_ENCRYPTION=true` specified. Available since 5.0.0. Disabled by default.
### `ZBX_DB_KEY_FILE`
The variable allows to specify the full path to a valid TLS key file. Available since 5.0.0.
### `ZBX_DB_CERT_FILE`
The variable allows to specify the full path to a valid TLS certificate file. Available since 5.0.0.
### `ZBX_DB_CA_FILE`
The variable allows to specify the full path to a valid TLS certificate authority file. Available since 5.0.0.
### `ZBX_DB_VERIFY_HOST`
The variable allows to activate host verification. Available since 5.0.0.
### `ZBX_DB_CIPHER_LIST`
The variable allows to specify a custom list of valid ciphers. The format of the cipher list must conform to the OpenSSL standard. Available since 5.0.0.
## Allowed volumes for the Zabbix web interface container ## Allowed volumes for the Zabbix web interface container
### ``/etc/ssl/apache2`` ### ``/etc/ssl/apache2``

View File

@ -166,6 +166,30 @@ The varable is PHP ``max_input_time`` option. By default, value is `300`.
The variable is Zabbix frontend [definition](https://www.zabbix.com/documentation/4.2/manual/web_interface/definitions). String used as the name of the Zabbix frontend session cookie. By default, value is `zbx_sessionid`. The variable is Zabbix frontend [definition](https://www.zabbix.com/documentation/4.2/manual/web_interface/definitions). String used as the name of the Zabbix frontend session cookie. By default, value is `zbx_sessionid`.
### `ZBX_DB_ENCRYPTION`
The variable allows to activate encryption for connections to Zabbix database. Even if no other environment variables are specified, connections will be TLS-encrypted if `ZBX_DB_ENCRYPTION=true` specified. Available since 5.0.0. Disabled by default.
### `ZBX_DB_KEY_FILE`
The variable allows to specify the full path to a valid TLS key file. Available since 5.0.0.
### `ZBX_DB_CERT_FILE`
The variable allows to specify the full path to a valid TLS certificate file. Available since 5.0.0.
### `ZBX_DB_CA_FILE`
The variable allows to specify the full path to a valid TLS certificate authority file. Available since 5.0.0.
### `ZBX_DB_VERIFY_HOST`
The variable allows to activate host verification. Available since 5.0.0.
### `ZBX_DB_CIPHER_LIST`
The variable allows to specify a custom list of valid ciphers. The format of the cipher list must conform to the OpenSSL standard. Available since 5.0.0.
## Allowed volumes for the Zabbix web interface container ## Allowed volumes for the Zabbix web interface container
### ``/etc/ssl/apache2`` ### ``/etc/ssl/apache2``

View File

@ -254,6 +254,10 @@ prepare_zbx_web_config() {
ZBX_DB_CERT_FILE=$(escape_spec_char "${ZBX_DB_CERT_FILE}") ZBX_DB_CERT_FILE=$(escape_spec_char "${ZBX_DB_CERT_FILE}")
ZBX_DB_CA_FILE=$(escape_spec_char "${ZBX_DB_CA_FILE}") ZBX_DB_CA_FILE=$(escape_spec_char "${ZBX_DB_CA_FILE}")
ZBX_DB_KEY_FILE=$(escape_spec_char "${ZBX_DB_KEY_FILE}")
ZBX_DB_CERT_FILE=$(escape_spec_char "${ZBX_DB_CERT_FILE}")
ZBX_DB_CA_FILE=$(escape_spec_char "${ZBX_DB_CA_FILE}")
sed -i \ sed -i \
-e "s/{DB_SERVER_HOST}/${DB_SERVER_HOST}/g" \ -e "s/{DB_SERVER_HOST}/${DB_SERVER_HOST}/g" \
-e "s/{DB_SERVER_PORT}/${DB_SERVER_PORT}/g" \ -e "s/{DB_SERVER_PORT}/${DB_SERVER_PORT}/g" \

View File

@ -164,6 +164,26 @@ The varable is PHP ``max_input_time`` option. By default, value is `300`.
The variable is Zabbix frontend [definition](https://www.zabbix.com/documentation/4.2/manual/web_interface/definitions). String used as the name of the Zabbix frontend session cookie. By default, value is `zbx_sessionid`. The variable is Zabbix frontend [definition](https://www.zabbix.com/documentation/4.2/manual/web_interface/definitions). String used as the name of the Zabbix frontend session cookie. By default, value is `zbx_sessionid`.
### `ZBX_DB_ENCRYPTION`
The variable allows to activate encryption for connections to Zabbix database. Even if no other environment variables are specified, connections will be TLS-encrypted if `ZBX_DB_ENCRYPTION=true` specified. Available since 5.0.0. Disabled by default.
### `ZBX_DB_KEY_FILE`
The variable allows to specify the full path to a valid TLS key file. Available since 5.0.0.
### `ZBX_DB_CERT_FILE`
The variable allows to specify the full path to a valid TLS certificate file. Available since 5.0.0.
### `ZBX_DB_CA_FILE`
The variable allows to specify the full path to a valid TLS certificate authority file. Available since 5.0.0.
### `ZBX_DB_VERIFY_HOST`
The variable allows to activate host verification. Available since 5.0.0.
## Allowed volumes for the Zabbix web interface container ## Allowed volumes for the Zabbix web interface container
### ``/etc/ssl/apache2`` ### ``/etc/ssl/apache2``

View File

@ -164,6 +164,26 @@ The varable is PHP ``max_input_time`` option. By default, value is `300`.
The variable is Zabbix frontend [definition](https://www.zabbix.com/documentation/4.2/manual/web_interface/definitions). String used as the name of the Zabbix frontend session cookie. By default, value is `zbx_sessionid`. The variable is Zabbix frontend [definition](https://www.zabbix.com/documentation/4.2/manual/web_interface/definitions). String used as the name of the Zabbix frontend session cookie. By default, value is `zbx_sessionid`.
### `ZBX_DB_ENCRYPTION`
The variable allows to activate encryption for connections to Zabbix database. Even if no other environment variables are specified, connections will be TLS-encrypted if `ZBX_DB_ENCRYPTION=true` specified. Available since 5.0.0. Disabled by default.
### `ZBX_DB_KEY_FILE`
The variable allows to specify the full path to a valid TLS key file. Available since 5.0.0.
### `ZBX_DB_CERT_FILE`
The variable allows to specify the full path to a valid TLS certificate file. Available since 5.0.0.
### `ZBX_DB_CA_FILE`
The variable allows to specify the full path to a valid TLS certificate authority file. Available since 5.0.0.
### `ZBX_DB_VERIFY_HOST`
The variable allows to activate host verification. Available since 5.0.0.
## Allowed volumes for the Zabbix web interface container ## Allowed volumes for the Zabbix web interface container
### ``/etc/ssl/apache2`` ### ``/etc/ssl/apache2``

View File

@ -164,6 +164,26 @@ The varable is PHP ``max_input_time`` option. By default, value is `300`.
The variable is Zabbix frontend [definition](https://www.zabbix.com/documentation/4.2/manual/web_interface/definitions). String used as the name of the Zabbix frontend session cookie. By default, value is `zbx_sessionid`. The variable is Zabbix frontend [definition](https://www.zabbix.com/documentation/4.2/manual/web_interface/definitions). String used as the name of the Zabbix frontend session cookie. By default, value is `zbx_sessionid`.
### `ZBX_DB_ENCRYPTION`
The variable allows to activate encryption for connections to Zabbix database. Even if no other environment variables are specified, connections will be TLS-encrypted if `ZBX_DB_ENCRYPTION=true` specified. Available since 5.0.0. Disabled by default.
### `ZBX_DB_KEY_FILE`
The variable allows to specify the full path to a valid TLS key file. Available since 5.0.0.
### `ZBX_DB_CERT_FILE`
The variable allows to specify the full path to a valid TLS certificate file. Available since 5.0.0.
### `ZBX_DB_CA_FILE`
The variable allows to specify the full path to a valid TLS certificate authority file. Available since 5.0.0.
### `ZBX_DB_VERIFY_HOST`
The variable allows to activate host verification. Available since 5.0.0.
## Allowed volumes for the Zabbix web interface container ## Allowed volumes for the Zabbix web interface container
### ``/etc/ssl/apache2`` ### ``/etc/ssl/apache2``

View File

@ -250,6 +250,10 @@ prepare_zbx_web_config() {
ZBX_DB_CERT_FILE=$(escape_spec_char "${ZBX_DB_CERT_FILE}") ZBX_DB_CERT_FILE=$(escape_spec_char "${ZBX_DB_CERT_FILE}")
ZBX_DB_CA_FILE=$(escape_spec_char "${ZBX_DB_CA_FILE}") ZBX_DB_CA_FILE=$(escape_spec_char "${ZBX_DB_CA_FILE}")
ZBX_DB_KEY_FILE=$(escape_spec_char "${ZBX_DB_KEY_FILE}")
ZBX_DB_CERT_FILE=$(escape_spec_char "${ZBX_DB_CERT_FILE}")
ZBX_DB_CA_FILE=$(escape_spec_char "${ZBX_DB_CA_FILE}")
sed -i \ sed -i \
-e "s/{DB_SERVER_HOST}/${DB_SERVER_HOST}/g" \ -e "s/{DB_SERVER_HOST}/${DB_SERVER_HOST}/g" \
-e "s/{DB_SERVER_PORT}/${DB_SERVER_PORT}/g" \ -e "s/{DB_SERVER_PORT}/${DB_SERVER_PORT}/g" \

View File

@ -167,11 +167,35 @@ The varable is PHP ``max_input_time`` option. By default, value is `300`.
The variable is Zabbix frontend [definition](https://www.zabbix.com/documentation/4.2/manual/web_interface/definitions). String used as the name of the Zabbix frontend session cookie. By default, value is `zbx_sessionid`. The variable is Zabbix frontend [definition](https://www.zabbix.com/documentation/4.2/manual/web_interface/definitions). String used as the name of the Zabbix frontend session cookie. By default, value is `zbx_sessionid`.
### `ZBX_DB_ENCRYPTION`
The variable allows to activate encryption for connections to Zabbix database. Even if no other environment variables are specified, connections will be TLS-encrypted if `ZBX_DB_ENCRYPTION=true` specified. Available since 5.0.0. Disabled by default.
### `ZBX_DB_KEY_FILE`
The variable allows to specify the full path to a valid TLS key file. Available since 5.0.0.
### `ZBX_DB_CERT_FILE`
The variable allows to specify the full path to a valid TLS certificate file. Available since 5.0.0.
### `ZBX_DB_CA_FILE`
The variable allows to specify the full path to a valid TLS certificate authority file. Available since 5.0.0.
### `ZBX_DB_VERIFY_HOST`
The variable allows to activate host verification. Available since 5.0.0.
### `ZBX_DB_CIPHER_LIST`
The variable allows to specify a custom list of valid ciphers. The format of the cipher list must conform to the OpenSSL standard. Available since 5.0.0.
## Allowed volumes for the Zabbix web interface container ## Allowed volumes for the Zabbix web interface container
### ``/etc/ssl/nginx`` ### ``/etc/ssl/nginx``
The volume allows to enable HTTPS for the Zabbix web interface. The volume must contains two files ``ssl.crt``, ``ssl.key`` and ``dhparam.pem`` prepared for Nginx SSL connections. The volume allows to enable HTTPS for the Zabbix web interface. The volume must contains three files ``ssl.crt``, ``ssl.key`` and ``dhparam.pem`` prepared for Nginx SSL connections.
Please follow official Nginx [documentation](http://nginx.org/en/docs/http/configuring_https_servers.html) to get more details about how to create certificate files. Please follow official Nginx [documentation](http://nginx.org/en/docs/http/configuring_https_servers.html) to get more details about how to create certificate files.

View File

@ -163,15 +163,41 @@ The varable is PHP ``upload_max_filesize`` option. By default, value is `2M`.
The varable is PHP ``max_input_time`` option. By default, value is `300`. The varable is PHP ``max_input_time`` option. By default, value is `300`.
<<<<<<< HEAD
### `ZBX_SESSION_NAME` ### `ZBX_SESSION_NAME`
The variable is Zabbix frontend [definition](https://www.zabbix.com/documentation/4.2/manual/web_interface/definitions). String used as the name of the Zabbix frontend session cookie. By default, value is `zbx_sessionid`. The variable is Zabbix frontend [definition](https://www.zabbix.com/documentation/4.2/manual/web_interface/definitions). String used as the name of the Zabbix frontend session cookie. By default, value is `zbx_sessionid`.
=======
### `ZBX_DB_ENCRYPTION`
The variable allows to activate encryption for connections to Zabbix database. Even if no other environment variables are specified, connections will be TLS-encrypted if `ZBX_DB_ENCRYPTION=true` specified. Available since 5.0.0. Disabled by default.
### `ZBX_DB_KEY_FILE`
The variable allows to specify the full path to a valid TLS key file. Available since 5.0.0.
### `ZBX_DB_CERT_FILE`
The variable allows to specify the full path to a valid TLS certificate file. Available since 5.0.0.
### `ZBX_DB_CA_FILE`
The variable allows to specify the full path to a valid TLS certificate authority file. Available since 5.0.0.
### `ZBX_DB_VERIFY_HOST`
The variable allows to activate host verification. Available since 5.0.0.
### `ZBX_DB_CIPHER_LIST`
The variable allows to specify a custom list of valid ciphers. The format of the cipher list must conform to the OpenSSL standard. Available since 5.0.0.
>>>>>>> master
## Allowed volumes for the Zabbix web interface container ## Allowed volumes for the Zabbix web interface container
### ``/etc/ssl/nginx`` ### ``/etc/ssl/nginx``
The volume allows to enable HTTPS for the Zabbix web interface. The volume must contains two files ``ssl.crt``, ``ssl.key`` and ``dhparam.pem`` prepared for Nginx SSL connections. The volume allows to enable HTTPS for the Zabbix web interface. The volume must contains three files ``ssl.crt``, ``ssl.key`` and ``dhparam.pem`` prepared for Nginx SSL connections.
Please follow official Nginx [documentation](http://nginx.org/en/docs/http/configuring_https_servers.html) to get more details about how to create certificate files. Please follow official Nginx [documentation](http://nginx.org/en/docs/http/configuring_https_servers.html) to get more details about how to create certificate files.

View File

@ -163,15 +163,41 @@ The varable is PHP ``upload_max_filesize`` option. By default, value is `2M`.
The varable is PHP ``max_input_time`` option. By default, value is `300`. The varable is PHP ``max_input_time`` option. By default, value is `300`.
<<<<<<< HEAD
### `ZBX_SESSION_NAME` ### `ZBX_SESSION_NAME`
The variable is Zabbix frontend [definition](https://www.zabbix.com/documentation/4.2/manual/web_interface/definitions). String used as the name of the Zabbix frontend session cookie. By default, value is `zbx_sessionid`. The variable is Zabbix frontend [definition](https://www.zabbix.com/documentation/4.2/manual/web_interface/definitions). String used as the name of the Zabbix frontend session cookie. By default, value is `zbx_sessionid`.
=======
### `ZBX_DB_ENCRYPTION`
The variable allows to activate encryption for connections to Zabbix database. Even if no other environment variables are specified, connections will be TLS-encrypted if `ZBX_DB_ENCRYPTION=true` specified. Available since 5.0.0. Disabled by default.
### `ZBX_DB_KEY_FILE`
The variable allows to specify the full path to a valid TLS key file. Available since 5.0.0.
### `ZBX_DB_CERT_FILE`
The variable allows to specify the full path to a valid TLS certificate file. Available since 5.0.0.
### `ZBX_DB_CA_FILE`
The variable allows to specify the full path to a valid TLS certificate authority file. Available since 5.0.0.
### `ZBX_DB_VERIFY_HOST`
The variable allows to activate host verification. Available since 5.0.0.
### `ZBX_DB_CIPHER_LIST`
The variable allows to specify a custom list of valid ciphers. The format of the cipher list must conform to the OpenSSL standard. Available since 5.0.0.
>>>>>>> master
## Allowed volumes for the Zabbix web interface container ## Allowed volumes for the Zabbix web interface container
### ``/etc/ssl/nginx`` ### ``/etc/ssl/nginx``
The volume allows to enable HTTPS for the Zabbix web interface. The volume must contains two files ``ssl.crt``, ``ssl.key`` and ``dhparam.pem`` prepared for Nginx SSL connections. The volume allows to enable HTTPS for the Zabbix web interface. The volume must contains three files ``ssl.crt``, ``ssl.key`` and ``dhparam.pem`` prepared for Nginx SSL connections.
Please follow official Nginx [documentation](http://nginx.org/en/docs/http/configuring_https_servers.html) to get more details about how to create certificate files. Please follow official Nginx [documentation](http://nginx.org/en/docs/http/configuring_https_servers.html) to get more details about how to create certificate files.

View File

@ -281,6 +281,10 @@ prepare_zbx_web_config() {
ZBX_DB_CERT_FILE=$(escape_spec_char "${ZBX_DB_CERT_FILE}") ZBX_DB_CERT_FILE=$(escape_spec_char "${ZBX_DB_CERT_FILE}")
ZBX_DB_CA_FILE=$(escape_spec_char "${ZBX_DB_CA_FILE}") ZBX_DB_CA_FILE=$(escape_spec_char "${ZBX_DB_CA_FILE}")
ZBX_DB_KEY_FILE=$(escape_spec_char "${ZBX_DB_KEY_FILE}")
ZBX_DB_CERT_FILE=$(escape_spec_char "${ZBX_DB_CERT_FILE}")
ZBX_DB_CA_FILE=$(escape_spec_char "${ZBX_DB_CA_FILE}")
sed -i \ sed -i \
-e "s/{DB_SERVER_HOST}/${DB_SERVER_HOST}/g" \ -e "s/{DB_SERVER_HOST}/${DB_SERVER_HOST}/g" \
-e "s/{DB_SERVER_PORT}/${DB_SERVER_PORT}/g" \ -e "s/{DB_SERVER_PORT}/${DB_SERVER_PORT}/g" \

View File

@ -164,11 +164,31 @@ The varable is PHP ``max_input_time`` option. By default, value is `300`.
The variable is Zabbix frontend [definition](https://www.zabbix.com/documentation/4.2/manual/web_interface/definitions). String used as the name of the Zabbix frontend session cookie. By default, value is `zbx_sessionid`. The variable is Zabbix frontend [definition](https://www.zabbix.com/documentation/4.2/manual/web_interface/definitions). String used as the name of the Zabbix frontend session cookie. By default, value is `zbx_sessionid`.
### `ZBX_DB_ENCRYPTION`
The variable allows to activate encryption for connections to Zabbix database. Even if no other environment variables are specified, connections will be TLS-encrypted if `ZBX_DB_ENCRYPTION=true` specified. Available since 5.0.0. Disabled by default.
### `ZBX_DB_KEY_FILE`
The variable allows to specify the full path to a valid TLS key file. Available since 5.0.0.
### `ZBX_DB_CERT_FILE`
The variable allows to specify the full path to a valid TLS certificate file. Available since 5.0.0.
### `ZBX_DB_CA_FILE`
The variable allows to specify the full path to a valid TLS certificate authority file. Available since 5.0.0.
### `ZBX_DB_VERIFY_HOST`
The variable allows to activate host verification. Available since 5.0.0.
## Allowed volumes for the Zabbix web interface container ## Allowed volumes for the Zabbix web interface container
### ``/etc/ssl/nginx`` ### ``/etc/ssl/nginx``
The volume allows to enable HTTPS for the Zabbix web interface. The volume must contains two files ``ssl.crt``, ``ssl.key`` and ``dhparam.pem`` prepared for Nginx SSL connections. The volume allows to enable HTTPS for the Zabbix web interface. The volume must contains three files ``ssl.crt``, ``ssl.key`` and ``dhparam.pem`` prepared for Nginx SSL connections.
Please follow official Nginx [documentation](http://nginx.org/en/docs/http/configuring_https_servers.html) to get more details about how to create certificate files. Please follow official Nginx [documentation](http://nginx.org/en/docs/http/configuring_https_servers.html) to get more details about how to create certificate files.

View File

@ -164,11 +164,31 @@ The varable is PHP ``max_input_time`` option. By default, value is `300`.
The variable is Zabbix frontend [definition](https://www.zabbix.com/documentation/4.2/manual/web_interface/definitions). String used as the name of the Zabbix frontend session cookie. By default, value is `zbx_sessionid`. The variable is Zabbix frontend [definition](https://www.zabbix.com/documentation/4.2/manual/web_interface/definitions). String used as the name of the Zabbix frontend session cookie. By default, value is `zbx_sessionid`.
### `ZBX_DB_ENCRYPTION`
The variable allows to activate encryption for connections to Zabbix database. Even if no other environment variables are specified, connections will be TLS-encrypted if `ZBX_DB_ENCRYPTION=true` specified. Available since 5.0.0. Disabled by default.
### `ZBX_DB_KEY_FILE`
The variable allows to specify the full path to a valid TLS key file. Available since 5.0.0.
### `ZBX_DB_CERT_FILE`
The variable allows to specify the full path to a valid TLS certificate file. Available since 5.0.0.
### `ZBX_DB_CA_FILE`
The variable allows to specify the full path to a valid TLS certificate authority file. Available since 5.0.0.
### `ZBX_DB_VERIFY_HOST`
The variable allows to activate host verification. Available since 5.0.0.
## Allowed volumes for the Zabbix web interface container ## Allowed volumes for the Zabbix web interface container
### ``/etc/ssl/nginx`` ### ``/etc/ssl/nginx``
The volume allows to enable HTTPS for the Zabbix web interface. The volume must contains two files ``ssl.crt``, ``ssl.key`` and ``dhparam.pem`` prepared for Nginx SSL connections. The volume allows to enable HTTPS for the Zabbix web interface. The volume must contains three files ``ssl.crt``, ``ssl.key`` and ``dhparam.pem`` prepared for Nginx SSL connections.
Please follow official Nginx [documentation](http://nginx.org/en/docs/http/configuring_https_servers.html) to get more details about how to create certificate files. Please follow official Nginx [documentation](http://nginx.org/en/docs/http/configuring_https_servers.html) to get more details about how to create certificate files.

View File

@ -164,11 +164,31 @@ The varable is PHP ``max_input_time`` option. By default, value is `300`.
The variable is Zabbix frontend [definition](https://www.zabbix.com/documentation/4.2/manual/web_interface/definitions). String used as the name of the Zabbix frontend session cookie. By default, value is `zbx_sessionid`. The variable is Zabbix frontend [definition](https://www.zabbix.com/documentation/4.2/manual/web_interface/definitions). String used as the name of the Zabbix frontend session cookie. By default, value is `zbx_sessionid`.
### `ZBX_DB_ENCRYPTION`
The variable allows to activate encryption for connections to Zabbix database. Even if no other environment variables are specified, connections will be TLS-encrypted if `ZBX_DB_ENCRYPTION=true` specified. Available since 5.0.0. Disabled by default.
### `ZBX_DB_KEY_FILE`
The variable allows to specify the full path to a valid TLS key file. Available since 5.0.0.
### `ZBX_DB_CERT_FILE`
The variable allows to specify the full path to a valid TLS certificate file. Available since 5.0.0.
### `ZBX_DB_CA_FILE`
The variable allows to specify the full path to a valid TLS certificate authority file. Available since 5.0.0.
### `ZBX_DB_VERIFY_HOST`
The variable allows to activate host verification. Available since 5.0.0.
## Allowed volumes for the Zabbix web interface container ## Allowed volumes for the Zabbix web interface container
### ``/etc/ssl/nginx`` ### ``/etc/ssl/nginx``
The volume allows to enable HTTPS for the Zabbix web interface. The volume must contains two files ``ssl.crt``, ``ssl.key`` and ``dhparam.pem`` prepared for Nginx SSL connections. The volume allows to enable HTTPS for the Zabbix web interface. The volume must contains three files ``ssl.crt``, ``ssl.key`` and ``dhparam.pem`` prepared for Nginx SSL connections.
Please follow official Nginx [documentation](http://nginx.org/en/docs/http/configuring_https_servers.html) to get more details about how to create certificate files. Please follow official Nginx [documentation](http://nginx.org/en/docs/http/configuring_https_servers.html) to get more details about how to create certificate files.

View File

@ -271,6 +271,10 @@ prepare_zbx_web_config() {
ZBX_DB_CERT_FILE=$(escape_spec_char "${ZBX_DB_CERT_FILE}") ZBX_DB_CERT_FILE=$(escape_spec_char "${ZBX_DB_CERT_FILE}")
ZBX_DB_CA_FILE=$(escape_spec_char "${ZBX_DB_CA_FILE}") ZBX_DB_CA_FILE=$(escape_spec_char "${ZBX_DB_CA_FILE}")
ZBX_DB_KEY_FILE=$(escape_spec_char "${ZBX_DB_KEY_FILE}")
ZBX_DB_CERT_FILE=$(escape_spec_char "${ZBX_DB_CERT_FILE}")
ZBX_DB_CA_FILE=$(escape_spec_char "${ZBX_DB_CA_FILE}")
sed -i \ sed -i \
-e "s/{DB_SERVER_HOST}/${DB_SERVER_HOST}/g" \ -e "s/{DB_SERVER_HOST}/${DB_SERVER_HOST}/g" \
-e "s/{DB_SERVER_PORT}/${DB_SERVER_PORT}/g" \ -e "s/{DB_SERVER_PORT}/${DB_SERVER_PORT}/g" \