diff --git a/debian/nginx.conf b/debian/nginx.conf index 67de555..312ef47 100644 --- a/debian/nginx.conf +++ b/debian/nginx.conf @@ -72,6 +72,8 @@ pid /var/run/nginx.pid; events { worker_connections 768; + # multi_accept on; + # use epoll; } # Separate stream location files @@ -80,12 +82,12 @@ include /etc/nginx/sites-enabled/*.stream; http { # Basic Settings - sendfile on; - tcp_nopush on; - tcp_nodelay on; - types_hash_max_size 2048; - server_tokens off; - ignore_invalid_headers on; + sendfile on; + tcp_nopush on; + tcp_nodelay on; + types_hash_max_size 2048; + server_tokens off; + ignore_invalid_headers on; # Decrease default timeouts to drop slow clients keepalive_timeout 40s; @@ -101,6 +103,9 @@ http { default_type application/octet-stream; include /etc/nginx/mime.types; + # aio threads + # aio threads=default; + # log log_format main '$remote_addr - $remote_user [$time_local] "$request" $status $bytes_sent "$http_referer" "$http_user_agent" "$gzip_ratio"'; access_log /var/log/nginx/access.log main;