mirror of
https://github.com/discourse/discourse.git
synced 2025-06-08 00:27:32 +08:00
FEATURE: add a custom log format for better analysis
This commit is contained in:
@ -25,8 +25,12 @@ map $http_x_forwarded_proto $thescheme {
|
|||||||
https https;
|
https https;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
log_format log_discourse '[$time_local] $remote_addr $request $sent_http_x_discourse_route $upstream_response_time $request_time';
|
||||||
|
|
||||||
server {
|
server {
|
||||||
|
|
||||||
|
access_log /var/log/nginx/access.log log_discourse;
|
||||||
|
|
||||||
listen 80;
|
listen 80;
|
||||||
gzip on;
|
gzip on;
|
||||||
gzip_vary on;
|
gzip_vary on;
|
||||||
|
Reference in New Issue
Block a user