updated container configuration for less log spam
This commit is contained in:
parent
f8578d62b5
commit
fa8dd3e09c
|
@ -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
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in a new issue