From 26337684f8481f0d94e3e5f2cc8c9419a719f2c7 Mon Sep 17 00:00:00 2001 From: Richard van der Hoff Date: Wed, 5 Oct 2022 14:59:29 +0100 Subject: [PATCH] Complement test image: capture logs from nginx Have nginx send its logs to stderr/out, so that we can debug https://github.com/matrix-org/synapse/issues/13334. --- changelog.d/14063.misc | 1 + docker/conf-workers/nginx.conf.j2 | 6 ++++++ 2 files changed, 7 insertions(+) create mode 100644 changelog.d/14063.misc diff --git a/changelog.d/14063.misc b/changelog.d/14063.misc new file mode 100644 index 000000000000..f0d1e47f1a0c --- /dev/null +++ b/changelog.d/14063.misc @@ -0,0 +1 @@ +Complement test image: capture logs from nginx. diff --git a/docker/conf-workers/nginx.conf.j2 b/docker/conf-workers/nginx.conf.j2 index 967fc65e798c..8ed70fdd7ccd 100644 --- a/docker/conf-workers/nginx.conf.j2 +++ b/docker/conf-workers/nginx.conf.j2 @@ -2,6 +2,12 @@ # configure_workers_and_start.py uses and amends to this file depending on the workers # that have been selected. +error_log /dev/stderr info; + +http { + access_log /dev/stdout; +} + {{ upstream_directives }} server {