This commit is contained in:
Arthur Lu
2026-01-15 01:42:36 +00:00
parent 4ef5b0459e
commit c40cbf1202
7 changed files with 119 additions and 4 deletions

14
conf.d/stream.conf Normal file
View File

@@ -0,0 +1,14 @@
# /etc/nginx/conf.d/stream.conf
stream {
# Specifies the main log format.
log_format main '$remote_addr [$time_local] '
'$protocol $status $bytes_sent $bytes_received '
'$session_time "$upstream_addr" '
'"$upstream_bytes_sent" "$upstream_bytes_received" "$upstream_connect_time"';
access_log /var/log/nginx/stream.log main;
# Includes servers configs.
include stream.d/*.conf;
}