Fixed Nginx configuration on Alpine 3.14

This commit is contained in:
Alexey Pustovalov 2021-07-01 04:25:15 -04:00
parent ea6fe8fbab
commit 76edafeb24
6 changed files with 6 additions and 6 deletions

View File

@ -47,7 +47,7 @@ RUN set -eux && \
php7-openssl \
supervisor && \
rm -rf /etc/php7/php-fpm.d/www.conf && \
rm -f /etc/nginx/conf.d/*.conf && \
rm -f /etc/nginx/http.d/*.conf && \
ln -sf /dev/fd/2 /var/lib/nginx/logs/error.log && \
rm -rf /var/cache/apk/*

View File

@ -67,5 +67,5 @@ http {
index index.php;
server_tokens off;
include /etc/nginx/conf.d/*.conf;
include /etc/nginx/http.d/*.conf;
}

View File

@ -146,7 +146,7 @@ check_db_connect() {
}
prepare_web_server() {
NGINX_CONFD_DIR="/etc/nginx/conf.d"
NGINX_CONFD_DIR="/etc/nginx/http.d"
NGINX_SSL_CONFIG="/etc/ssl/nginx"
echo "** Adding Zabbix virtual host (HTTP)"

View File

@ -46,7 +46,7 @@ RUN set -eux && \
postgresql-client \
supervisor && \
rm -rf /etc/php7/php-fpm.d/www.conf && \
rm -f /etc/nginx/conf.d/*.conf && \
rm -f /etc/nginx/http.d/*.conf && \
ln -sf /dev/fd/2 /var/lib/nginx/logs/error.log && \
rm -rf /var/cache/apk/*

View File

@ -67,5 +67,5 @@ http {
index index.php;
server_tokens off;
include /etc/nginx/conf.d/*.conf;
include /etc/nginx/http.d/*.conf;
}

View File

@ -130,7 +130,7 @@ check_db_connect() {
}
prepare_web_server() {
NGINX_CONFD_DIR="/etc/nginx/conf.d"
NGINX_CONFD_DIR="/etc/nginx/http.d"
NGINX_SSL_CONFIG="/etc/ssl/nginx"
echo "** Adding Zabbix virtual host (HTTP)"