Add stream configuration
This commit is contained in:
parent
93c0c0571c
commit
1e5e02d104
@ -15,5 +15,5 @@ http {
|
||||
|
||||
#gzip on;
|
||||
|
||||
include /etc/nginx/conf.d/*.conf;
|
||||
include /etc/nginx/http.d/*.conf;
|
||||
}
|
||||
|
14
etc/nginx/include.d/stream.conf
Normal file
14
etc/nginx/include.d/stream.conf
Normal file
@ -0,0 +1,14 @@
|
||||
stream {
|
||||
log_format basic '$remote_addr [$time_local] '
|
||||
'$protocol $status $bytes_sent $bytes_received '
|
||||
'$session_time';
|
||||
|
||||
log_format proxy '$time_local: $remote_addr '
|
||||
'$protocol $status $bytes_sent $bytes_received '
|
||||
'$session_time "$upstream_addr" '
|
||||
'"$upstream_bytes_sent" "$upstream_bytes_received" "$upstream_connect_time"';
|
||||
|
||||
proxy_protocol on;
|
||||
|
||||
include /etc/nginx/stream.d/*.conf;
|
||||
}
|
Loading…
Reference in New Issue
Block a user