mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 08:57:10 -06:00
FEATURE: add a custom log format for better analysis
This commit is contained in:
parent
0e4883a8ae
commit
a6ac368476
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user