FEATURE: add a custom log format for better analysis

This commit is contained in:
Sam 2015-06-16 11:37:08 +10:00
parent 0e4883a8ae
commit a6ac368476
1 changed files with 4 additions and 0 deletions

View File

@ -25,8 +25,12 @@ map $http_x_forwarded_proto $thescheme {
https https;
}
log_format log_discourse '[$time_local] $remote_addr $request $sent_http_x_discourse_route $upstream_response_time $request_time';
server {
access_log /var/log/nginx/access.log log_discourse;
listen 80;
gzip on;
gzip_vary on;