Enable full debuggable logs on non-proxy protocol nginx config
Fixes #2037
This commit is contained in:
parent
b4ace1dd29
commit
2726405ea5
3 changed files with 10 additions and 6 deletions
|
@ -2,11 +2,11 @@
|
||||||
|
|
||||||
set_real_ip_from 0.0.0.0/0;
|
set_real_ip_from 0.0.0.0/0;
|
||||||
real_ip_recursive on;
|
real_ip_recursive on;
|
||||||
log_format lb_pp '$remote_addr ($proxy_protocol_addr) '
|
log_format lb_logs '$remote_addr ($proxy_protocol_addr) '
|
||||||
'- $remote_user [$time_local] '
|
'- $remote_user [$time_local] '
|
||||||
'"$request" $status $body_bytes_sent '
|
'"$request" $status $body_bytes_sent '
|
||||||
'"$http_referer" "$http_user_agent" '
|
'"$http_referer" "$http_user_agent" '
|
||||||
'($request_time $request_length $upstream_response_time)';
|
'($request_time $request_length $upstream_response_time)';
|
||||||
|
|
||||||
types_hash_max_size 2048;
|
types_hash_max_size 2048;
|
||||||
include /etc/nginx/mime.types;
|
include /etc/nginx/mime.types;
|
||||||
|
|
|
@ -10,5 +10,7 @@ http {
|
||||||
include server-base.conf;
|
include server-base.conf;
|
||||||
|
|
||||||
listen 80 default;
|
listen 80 default;
|
||||||
|
|
||||||
|
access_log /dev/stdout lb_logs;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -30,6 +30,8 @@ http {
|
||||||
|
|
||||||
# This header must be set only for HTTPS
|
# This header must be set only for HTTPS
|
||||||
add_header Strict-Transport-Security "max-age=63072000; preload";
|
add_header Strict-Transport-Security "max-age=63072000; preload";
|
||||||
|
|
||||||
|
access_log /dev/stdout lb_logs;
|
||||||
}
|
}
|
||||||
|
|
||||||
server {
|
server {
|
||||||
|
@ -43,6 +45,6 @@ http {
|
||||||
|
|
||||||
real_ip_header proxy_protocol;
|
real_ip_header proxy_protocol;
|
||||||
|
|
||||||
access_log /dev/stdout lb_pp;
|
access_log /dev/stdout lb_logs;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue