Show domain in logs rather than upstream
The upstream is always the same, and no use to us
This commit is contained in:
parent
619d5bfa7b
commit
1db289b604
2 changed files with 7 additions and 3 deletions
|
@ -36,15 +36,17 @@ stream {
|
||||||
|
|
||||||
log_format access '$remote_addr [$time_local] '
|
log_format access '$remote_addr [$time_local] '
|
||||||
'$protocol $status $bytes_sent $bytes_received '
|
'$protocol $status $bytes_sent $bytes_received '
|
||||||
'$session_time "$upstream_addr" '
|
'$session_time "$ssl_preread_server_name" '
|
||||||
'"$upstream_bytes_sent" "$upstream_bytes_received" "$upstream_connect_time"';
|
'"$upstream_bytes_sent" "$upstream_bytes_received" "$upstream_connect_time"';
|
||||||
|
|
||||||
log_format ips '$remote_addr [$time_local] $upstream_addr';
|
log_format ips '$remote_addr [$time_local] $ssl_preread_server_name';
|
||||||
|
|
||||||
|
|
||||||
access_log /var/log/nginx/access.log access;
|
access_log /var/log/nginx/access.log access;
|
||||||
access_log /var/log/nginx/ips.log ips;
|
access_log /var/log/nginx/ips.log ips;
|
||||||
|
|
||||||
|
ssl_preread on;
|
||||||
|
|
||||||
server {
|
server {
|
||||||
listen 443;
|
listen 443;
|
||||||
listen 8448;
|
listen 8448;
|
||||||
|
|
|
@ -35,11 +35,13 @@ stream {
|
||||||
|
|
||||||
log_format access '$remote_addr [$time_local] '
|
log_format access '$remote_addr [$time_local] '
|
||||||
'$protocol $status $bytes_sent $bytes_received '
|
'$protocol $status $bytes_sent $bytes_received '
|
||||||
'$session_time "$upstream_addr" '
|
'$session_time "$ssl_preread_server_name" '
|
||||||
'"$upstream_bytes_sent" "$upstream_bytes_received" "$upstream_connect_time"';
|
'"$upstream_bytes_sent" "$upstream_bytes_received" "$upstream_connect_time"';
|
||||||
|
|
||||||
access_log /var/log/nginx/access.log access;
|
access_log /var/log/nginx/access.log access;
|
||||||
|
|
||||||
|
ssl_preread on;
|
||||||
|
|
||||||
# Internal LAN route
|
# Internal LAN route
|
||||||
server {
|
server {
|
||||||
listen 443;
|
listen 443;
|
||||||
|
|
Loading…
Reference in a new issue