From d82b5494a2e1fe86ab9531f745443fe877abecd0 Mon Sep 17 00:00:00 2001
From: Dominik Hebeler <dominik@suma-ev.de>
Date: Fri, 7 Feb 2020 12:23:17 +0100
Subject: [PATCH] removed access log from stdout and instead linked error log
 to it

---
 Dockerfile | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/Dockerfile b/Dockerfile
index 98d2f4094..f61fe3c49 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -24,6 +24,8 @@ RUN sed -i 's/listen.owner = www-data/listen.owner = nginx/g' /etc/php/7.3/fpm/p
     sed -i 's/user = www-data/user = nginx/g' /etc/php/7.3/fpm/pool.d/www.conf && \
     sed -i 's/group = www-data/group = nginx/g' /etc/php/7.3/fpm/pool.d/www.conf && \
     sed -i 's/;cgi.fix_pathinfo=1/cgi.fix_pathinfo=0/g' /etc/php/7.3/fpm/php.ini && \
+    rm /var/log/nginx/access.log && ln -s /dev/null /var/log/nginx/access.log && \
+    rm /var/log/nginx/error.log && ln -s /dev/stdout /var/log/nginx/error.log && \
     mkdir /html
 
 # Set correct timezone
-- 
GitLab