Add stream configuration

This commit is contained in:
Deon George 2024-10-12 21:51:13 +11:00
parent 93c0c0571c
commit 1e5e02d104
2 changed files with 15 additions and 1 deletions

View File

@ -15,5 +15,5 @@ http {
#gzip on;
include /etc/nginx/conf.d/*.conf;
include /etc/nginx/http.d/*.conf;
}

View 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;
}