Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

puppet: Log the "Host" header and total response time.

Alex Vandiver2e20ab1658fd
diff --git a/puppet/zulip/templates/nginx.conf.template.erb b/puppet/zulip/templates/nginx.conf.template.erb
index f6a8db0d2a9..44d8dfed1e1 100644
--- a/puppet/zulip/templates/nginx.conf.template.erb
+++ b/puppet/zulip/templates/nginx.conf.template.erb
@@ -23,7 +23,10 @@ http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
- access_log /var/log/nginx/access.log;
+ log_format combined_with_host_and_time '$remote_addr - $remote_user [$time_local] '
+ '"$request" $status $body_bytes_sent '
+ '"$http_referer" "$http_user_agent" $host $request_time';
+ access_log /var/log/nginx/access.log combined_with_host_and_time;
error_log /var/log/nginx/error.log;
reset_timedout_connection on;