Set access log format and Upstream
Set access log format to json_combined Switch from $backend_variable to upstream (Except for harbor, plane-minio, goaccess, opencloud)
This commit is contained in:
@@ -1,3 +1,16 @@
|
||||
# upstream goaccess_backend {
|
||||
# server goaccess:7890;
|
||||
#
|
||||
# # Keep up to 32 idle connections per worker
|
||||
# keepalive 16;
|
||||
#
|
||||
# # Maximum time a connection can be idle
|
||||
# keepalive_timeout 60s;
|
||||
#
|
||||
# # Maximum requests per keepalive connection
|
||||
# keepalive_requests 100;
|
||||
# }
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
listen [::]:80;
|
||||
@@ -41,7 +54,7 @@ server {
|
||||
resolver_timeout 5s;
|
||||
|
||||
# Logging
|
||||
access_log /var/log/nginx/goaccess.novicelab.io_access.log VCOMBINED;
|
||||
access_log /var/log/nginx/goaccess.novicelab.io_access.log json_combined;
|
||||
error_log /var/log/nginx/goaccess.novicelab.io_error.log debug;
|
||||
|
||||
set $goaccess_backend goaccess:7890;
|
||||
|
||||
Reference in New Issue
Block a user