From 7fb0cfeb62d8c24388d9948cb00ff4d029fe79ec Mon Sep 17 00:00:00 2001 From: Stephane de Labrusse Date: Wed, 18 Sep 2024 09:23:10 +0200 Subject: [PATCH 1/2] Write log to files for json output --- nextcloud/ns.config.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nextcloud/ns.config.php b/nextcloud/ns.config.php index 5d173f9..a2e7752 100644 --- a/nextcloud/ns.config.php +++ b/nextcloud/ns.config.php @@ -5,7 +5,8 @@ 'upgrade.disable-web' => true, 'updatechecker' => false, 'check_for_working_wellknown_setup' => false, - 'log_type' => 'errorlog', + 'log_type' => 'file', + 'logfile' => 'nextcloud.log', 'maintenance_window_start' => 1, 'trusted_proxies' => ['127.0.0.1'], ); From b848f5d3472bb5a609717650641bdaeec3d99ef7 Mon Sep 17 00:00:00 2001 From: Stephane de Labrusse Date: Wed, 18 Sep 2024 10:27:08 +0200 Subject: [PATCH 2/2] send to stderr directly --- nextcloud/Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nextcloud/Dockerfile b/nextcloud/Dockerfile index 74841d8..4502381 100644 --- a/nextcloud/Dockerfile +++ b/nextcloud/Dockerfile @@ -44,6 +44,8 @@ RUN mkdir -p \ /var/run/supervisord \ ; +RUN ln -sf /dev/stderr /var/www/html/nextcloud.log + COPY supervisord.conf / COPY ns.config.php /usr/src/nextcloud/config/