From bc927f6fd3e9a8460dd0a7446f853cba1f366381 Mon Sep 17 00:00:00 2001 From: CN-JS-HuiBai Date: Fri, 22 Dec 2023 20:32:01 +0800 Subject: [PATCH] upload nginx.conf --- nginx.conf | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 nginx.conf diff --git a/nginx.conf b/nginx.conf new file mode 100644 index 0000000..5148ede --- /dev/null +++ b/nginx.conf @@ -0,0 +1,34 @@ +user nginx; +worker_processes auto; +error_log /var/log/nginx/error.log notice; +pid /run/nginx.pid; + +include /usr/share/nginx/modules/*.conf; + +events { + worker_connections 1024; +} +stream { + log_format tcp_format '$time_local|$remote_addr|$protocol|$status|$bytes_sent|$bytes_received|$session_time|$upstream_addr|$upstream_bytes_sent|$upstream_bytes_received|$upstream_connect_time'; + access_log /www/wwwlogs/tcp-access.log tcp_format; + error_log /www/wwwlogs/tcp-error.log; + include /www/nginx.proxy.d/*.conf; +} +http { + log_format main '$remote_addr - $remote_user [$time_local] "$request" ' + '$status $body_bytes_sent "$http_referer" ' + '"$http_user_agent" "$http_x_forwarded_for"'; + + access_log /var/log/nginx/access.log main; + + sendfile on; + tcp_nopush on; + keepalive_timeout 65; + types_hash_max_size 4096; + + include /etc/nginx/mime.types; + default_type application/octet-stream; + include /etc/nginx/conf.d/*.conf; + include /www/nginx.conf.d/*.conf; + +} \ No newline at end of file