From 20101c5feadd5e045e4a5fe623d96bede8dbc25a Mon Sep 17 00:00:00 2001 From: Hsieh Chin Fan Date: Tue, 3 Dec 2024 17:32:28 +0800 Subject: Update --- nginx/nginx.conf | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'nginx/nginx.conf') diff --git a/nginx/nginx.conf b/nginx/nginx.conf index d0601ec..b340adc 100644 --- a/nginx/nginx.conf +++ b/nginx/nginx.conf @@ -22,8 +22,7 @@ http { server_names_hash_bucket_size 128; include mime.types; - default_type application/octet-stream; - disable_symlinks off; + default_type "text/plain; charset=utf-8"; # Read manual for valid variables: # https://nginx.org/en/docs/http/ngx_http_core_module.html#variables @@ -32,11 +31,12 @@ http { # '$status $body_bytes_sent "$http_referer" ' # '"$http_user_agent" "$http_x_forwarded_for"'; log_format main '$status $request_method\t$http_host$uri\tfrom $http_referer\n' - '$time_iso8601 $remote_addr\r\t\t\t\t\t $http_user_agent'; + ' $time_iso8601 $remote_addr\r\t\t\t\t\t $http_user_agent'; access_log /var/log/nginx/access.log main; - sendfile on; - #tcp_nopush on; + sendfile on; + tcp_nopush on; + tcp_nodelay on; #keepalive_timeout 0; keepalive_timeout 65; -- cgit v1.2.3-70-g09d2