fix stream module load,

add logging format to streams
This commit is contained in:
Arthur Lu 2023-12-12 10:52:18 -08:00
parent 1c8432b2d4
commit 5eac025ffe

View File

@ -1,6 +1,7 @@
user nginx; user nginx;
worker_processes auto; worker_processes auto;
pcre_jit on; pcre_jit on;
load_module /usr/lib/nginx/modules/ngx_stream_module.so;
events { events {
worker_connections 768; worker_connections 768;
} }
@ -38,8 +39,11 @@ http {
} }
stream { stream {
# logging # logging
access_log access.log; log_format basic '$remote_addr:$remote_port - $time_local '
error_log error.log; '$protocol stat:$status bs:$bytes_sent br:$bytes_received '
st:'$session_time';
access_log access.log basic;
error_log error.log basic;
# include stream # include stream
include stream/*.conf; include stream/*.conf;