Merge pull request #428 from jamebal/dev

conf/nginx: 配置日志记录
This commit is contained in:
jmal 2025-06-26 10:24:47 +08:00 committed by GitHub
commit 62ea8e9699
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 0 deletions

View File

@ -23,6 +23,10 @@ http {
keepalive_timeout 65;
#gzip on;
# 日志
access_log off;
error_log /var/log/nginx/error.log warn;
map $http_upgrade $connection_upgrade {
default upgrade;
'' close;

View File

@ -17,6 +17,10 @@ http {
include mime.types;
default_type application/octet-stream;
# 日志
access_log off;
error_log /var/log/nginx/error.log warn;
# 全局性能优化
sendfile on;
tcp_nopush on;