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;
|
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;
|
||||||
|
|
Loading…
Reference in New Issue