Skip to content

Commit

Permalink
Merge pull request #15 from anynines/enhance-logformat
Browse files Browse the repository at this point in the history
Extend log format
  • Loading branch information
gdenn authored Nov 13, 2018
2 parents 3d365b2 + e950b90 commit edfb66a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions jobs/nginx/templates/nginx.conf.erb
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,13 @@ http {
<% if p('a9s_ssl_gateway.enable_proxy_protocol') %>
log_format main '$proxy_protocol_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
'"$http_user_agent" "$http_x_forwarded_for" '
'$connection $connection_requests $request_length $request_time';
<% else %>
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
'"$http_user_agent" "$http_x_forwarded_for" '
'$connection $connection_requests $request_length $request_time';
<% end %>

access_log /var/vcap/sys/log/nginx/access.log main;
Expand Down

0 comments on commit edfb66a

Please sign in to comment.