Skip to content

Commit

Permalink
updated container configuration for less log spam
Browse files Browse the repository at this point in the history
  • Loading branch information
geek-at committed Dec 4, 2023
1 parent f8578d6 commit fa8dd3e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
5 changes: 5 additions & 0 deletions docker/rootfs/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

}

0 comments on commit fa8dd3e

Please sign in to comment.