mirror of
https://github.com/zabbix/zabbix-docker.git
synced 2025-06-04 09:06:23 +02:00
Fixed fastcgi_read_timeout value
This commit is contained in:
parent
2eb3b28501
commit
de130ad9ca
@ -301,6 +301,17 @@ prepare_zbx_web_config() {
|
|||||||
rm -f "/tmp/defines.inc.php_tmp"
|
rm -f "/tmp/defines.inc.php_tmp"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
FCGI_READ_TIMEOUT=$(expr ${ZBX_MAXEXECUTIONTIME} + 1)
|
||||||
|
sed -i \
|
||||||
|
-e "s/{FCGI_READ_TIMEOUT}/${FCGI_READ_TIMEOUT}/g" \
|
||||||
|
"$ZABBIX_ETC_DIR/nginx.conf"
|
||||||
|
|
||||||
|
if [ -f "$ZABBIX_ETC_DIR/nginx_ssl.conf" ]; then
|
||||||
|
sed -i \
|
||||||
|
-e "s/{FCGI_READ_TIMEOUT}/${FCGI_READ_TIMEOUT}/g" \
|
||||||
|
"$ZABBIX_ETC_DIR/nginx_ssl.conf"
|
||||||
|
fi
|
||||||
|
|
||||||
if [ "${ENABLE_WEB_ACCESS_LOG:-"true"}" == "false" ]; then
|
if [ "${ENABLE_WEB_ACCESS_LOG:-"true"}" == "false" ]; then
|
||||||
sed -ri \
|
sed -ri \
|
||||||
-e 's!^(\s*access_log).+\;!\1 off\;!g' \
|
-e 's!^(\s*access_log).+\;!\1 off\;!g' \
|
||||||
|
@ -575,6 +575,17 @@ prepare_zbx_web_config() {
|
|||||||
rm -f "/tmp/defines.inc.php_tmp"
|
rm -f "/tmp/defines.inc.php_tmp"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
FCGI_READ_TIMEOUT=$(expr ${ZBX_MAXEXECUTIONTIME} + 1)
|
||||||
|
sed -i \
|
||||||
|
-e "s/{FCGI_READ_TIMEOUT}/${FCGI_READ_TIMEOUT}/g" \
|
||||||
|
"$ZABBIX_ETC_DIR/nginx.conf"
|
||||||
|
|
||||||
|
if [ -f "$ZABBIX_ETC_DIR/nginx_ssl.conf" ]; then
|
||||||
|
sed -i \
|
||||||
|
-e "s/{FCGI_READ_TIMEOUT}/${FCGI_READ_TIMEOUT}/g" \
|
||||||
|
"$ZABBIX_ETC_DIR/nginx_ssl.conf"
|
||||||
|
fi
|
||||||
|
|
||||||
if [ "${ENABLE_WEB_ACCESS_LOG:-"true"}" == "false" ]; then
|
if [ "${ENABLE_WEB_ACCESS_LOG:-"true"}" == "false" ]; then
|
||||||
sed -ri \
|
sed -ri \
|
||||||
-e 's!^(\s*access_log).+\;!\1 off\;!g' \
|
-e 's!^(\s*access_log).+\;!\1 off\;!g' \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user