Adding HTTP debug response headers to distinguish requests

This commit is contained in:
Christoph Haas 2021-02-13 21:05:59 +01:00
parent 5d8ab83262
commit 6ec58ac1d8

View file

@ -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 }}