updated container configuration for less log spam

This commit is contained in:
Chris 2023-12-04 11:14:46 +01:00
parent f8578d62b5
commit fa8dd3e09c
2 changed files with 6 additions and 0 deletions

View file

@ -19,6 +19,7 @@ ADD docker/rootfs/nginx.conf /etc/nginx/http.d/default.conf
RUN mkdir -p /run/nginx
RUN mkdir -p /var/log/nginx
RUN sed -i 's/nobody/nginx/g' /etc/php81/php-fpm.d/www.conf
RUN sed -i 's/E_ALL \& ~E_DEPRECATED \& ~E_STRICT/E_ALL \& ~E_DEPRECATED \& ~E_STRICT \& ~E_NOTICE \& ~E_WARNING/g' /etc/php81/php.ini
WORKDIR /var/www/opentrashmail

View file

@ -51,4 +51,9 @@ server {
gzip_comp_level 6;
gzip_types text/plain text/css text/xml application/json application/javascript application/xml+rss application/atom+xml image/svg+xml;
# don't log static files
location ~* \.(js|css|png|jpg|jpeg|gif|ico|woff2|)$ {
access_log off;
}
}