Browse Source

improve sendfile & keepalive settings

easyengine-v3
VirtuBox 2 years ago
parent
commit
bd163adf0e
8 changed files with 70 additions and 34 deletions
  1. +8
    -2
      docs/files/etc/nginx/nginx-intermediate.conf
  2. +13
    -7
      docs/files/etc/nginx/nginx-tlsv12.conf
  3. +8
    -2
      docs/files/etc/nginx/nginx.conf
  4. +6
    -6
      docs/files/etc/nginx/sites-available/22222
  5. +8
    -2
      etc/nginx/nginx-intermediate.conf
  6. +13
    -7
      etc/nginx/nginx-tlsv12.conf
  7. +8
    -2
      etc/nginx/nginx.conf
  8. +6
    -6
      etc/nginx/sites-available/22222

+ 8
- 2
docs/files/etc/nginx/nginx-intermediate.conf View File

@@ -18,10 +18,16 @@ http
##

sendfile on;
sendfile_max_chunk 512k;

tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 30;
types_hash_max_size 2048;

keepalive_timeout 8;
keepalive_requests 500;

lingering_time 20s;
lingering_timeout 5s;

server_tokens off;
reset_timedout_connection on;


+ 13
- 7
docs/files/etc/nginx/nginx-tlsv12.conf View File

@@ -18,10 +18,16 @@ http
##

sendfile on;
sendfile_max_chunk 512k;

tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 30;
types_hash_max_size 2048;

keepalive_timeout 8;
keepalive_requests 500;

lingering_time 20s;
lingering_timeout 5s;

server_tokens off;
reset_timedout_connection on;
@@ -50,13 +56,13 @@ http

#See - https://www.nginx.com/blog/thread-pools-boost-performance-9x/
aio threads;
# tls dynamic records patch directive
ssl_dyn_rec_enable on;
# nginx-vts-status module
#vhost_traffic_status_zone;
vhost_traffic_status_zone;
resolver 8.8.8.8 1.1.1.1 valid=300s;
resolver_timeout 10;

@@ -104,7 +110,7 @@ http
log_format rt_cache '$remote_addr_ipscrub $upstream_response_time $upstream_cache_status [$time_local] '
'$http_host "$request" $status $body_bytes_sent '
'"$http_referer" "$http_user_agent" $server_protocol';
# ipscrub settings
ipscrub_period_seconds 3600;



+ 8
- 2
docs/files/etc/nginx/nginx.conf View File

@@ -18,10 +18,16 @@ http
##

sendfile on;
sendfile_max_chunk 512k;

tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 30;
types_hash_max_size 2048;

keepalive_timeout 8;
keepalive_requests 500;

lingering_time 20s;
lingering_timeout 5s;

server_tokens off;
reset_timedout_connection on;


+ 6
- 6
docs/files/etc/nginx/sites-available/22222 View File

@@ -25,12 +25,12 @@ server {
location / {
try_files $uri $uri/ /index.php?$args;
}
# nginx-vts-status
#location /vts_status {
#vhost_traffic_status_display;
#vhost_traffic_status_display_format html;
#}
# nginx-vts-status
location /vts_status {
vhost_traffic_status_display;
vhost_traffic_status_display_format html;
}

# Display menu at location /fpm/status/
location = /fpm/status/ {}


+ 8
- 2
etc/nginx/nginx-intermediate.conf View File

@@ -18,10 +18,16 @@ http
##

sendfile on;
sendfile_max_chunk 512k;

tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 30;
types_hash_max_size 2048;

keepalive_timeout 8;
keepalive_requests 500;

lingering_time 20s;
lingering_timeout 5s;

server_tokens off;
reset_timedout_connection on;


+ 13
- 7
etc/nginx/nginx-tlsv12.conf View File

@@ -18,10 +18,16 @@ http
##

sendfile on;
sendfile_max_chunk 512k;

tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 30;
types_hash_max_size 2048;

keepalive_timeout 8;
keepalive_requests 500;

lingering_time 20s;
lingering_timeout 5s;

server_tokens off;
reset_timedout_connection on;
@@ -50,13 +56,13 @@ http

#See - https://www.nginx.com/blog/thread-pools-boost-performance-9x/
aio threads;
# tls dynamic records patch directive
ssl_dyn_rec_enable on;
# nginx-vts-status module
#vhost_traffic_status_zone;
vhost_traffic_status_zone;
resolver 8.8.8.8 1.1.1.1 valid=300s;
resolver_timeout 10;

@@ -104,7 +110,7 @@ http
log_format rt_cache '$remote_addr_ipscrub $upstream_response_time $upstream_cache_status [$time_local] '
'$http_host "$request" $status $body_bytes_sent '
'"$http_referer" "$http_user_agent" $server_protocol';
# ipscrub settings
ipscrub_period_seconds 3600;



+ 8
- 2
etc/nginx/nginx.conf View File

@@ -18,10 +18,16 @@ http
##

sendfile on;
sendfile_max_chunk 512k;

tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 30;
types_hash_max_size 2048;

keepalive_timeout 8;
keepalive_requests 500;

lingering_time 20s;
lingering_timeout 5s;

server_tokens off;
reset_timedout_connection on;


+ 6
- 6
etc/nginx/sites-available/22222 View File

@@ -25,12 +25,12 @@ server {
location / {
try_files $uri $uri/ /index.php?$args;
}
# nginx-vts-status
#location /vts_status {
#vhost_traffic_status_display;
#vhost_traffic_status_display_format html;
#}
# nginx-vts-status
location /vts_status {
vhost_traffic_status_display;
vhost_traffic_status_display_format html;
}

# Display menu at location /fpm/status/
location = /fpm/status/ {}


Loading…
Cancel
Save