Skip to content

A platform for community discussion. Free, open, simple.

FEATURE: Add extra response headers to nginx log format (#11840)

David Taylor67db5e97f8d1
diff --git a/config/nginx.sample.conf b/config/nginx.sample.conf
index 6fd053d5d96..b417c85388e 100644
--- a/config/nginx.sample.conf
+++ b/config/nginx.sample.conf
@@ -29,7 +29,7 @@ map $http_x_forwarded_proto $thescheme {
https https;
}
-log_format log_discourse '[$time_local] "$http_host" $remote_addr "$request" "$http_user_agent" "$sent_http_x_discourse_route" $status $bytes_sent "$http_referer" $upstream_response_time $request_time "$sent_http_x_discourse_username"';
+log_format log_discourse '[$time_local] "$http_host" $remote_addr "$request" "$http_user_agent" "$sent_http_x_discourse_route" $status $bytes_sent "$http_referer" $upstream_response_time $request_time "$sent_http_x_discourse_username" "$sent_http_x_discourse_trackview" "$sent_http_x_queue_time" "$sent_http_x_redis_calls" "$sent_http_x_redis_time" "$sent_http_x_sql_calls" "$sent_http_x_sql_time"';
server {