From 6ec58ac1d8ff59c2eee65ab657e364b1166a16e1 Mon Sep 17 00:00:00 2001 From: Christoph Haas Date: Sat, 13 Feb 2021 21:05:59 +0100 Subject: [PATCH] Adding HTTP debug response headers to distinguish requests --- nginx.conf.sigil | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nginx.conf.sigil b/nginx.conf.sigil index ae6726d..4ffdf51 100644 --- a/nginx.conf.sigil +++ b/nginx.conf.sigil @@ -104,11 +104,13 @@ server { proxy_set_header X-Forwarded-Port {{ $.PROXY_X_FORWARDED_PORT }}; proxy_set_header X-Forwarded-Proto {{ $.PROXY_X_FORWARDED_PROTO }}; proxy_set_header X-Request-Start $msec; + add_header X-Coffee rails-backend; } # debshots - added - deliver static images directly without asking Rails location /public/screenshot { alias /srv/www/{{ $.APP }}/screenshot; + add_header X-Coffee nginx-static; } {{ if $.CLIENT_MAX_BODY_SIZE }}client_max_body_size {{ $.CLIENT_MAX_BODY_SIZE }};{{ end }}