updated nginx.conf to have less connections per worker and added webp to compression
This commit is contained in:
+2
-2
@@ -4,7 +4,7 @@ worker_processes auto;
|
||||
#Provides the configuration file context in which the directives that affect connection processing are specified.
|
||||
events {
|
||||
# Sets the maximum number of simultaneous connections that can be opened by a worker process.
|
||||
worker_connections 8000;
|
||||
worker_connections 1024;
|
||||
# Tells the worker to accept multiple connections at a time
|
||||
multi_accept on;
|
||||
}
|
||||
@@ -28,7 +28,7 @@ http {
|
||||
gzip_comp_level 6;
|
||||
gzip_buffers 16 8k;
|
||||
gzip_http_version 1.1;
|
||||
gzip_types text/plain text/css text/xml text/javascript image/svg+xml image/x-icon application/javascript application/x-javascript application/json application/xml application/xml+rss;
|
||||
gzip_types text/plain text/css text/xml text/javascript image/webp image/svg+xml image/x-icon application/javascript application/x-javascript application/json application/xml application/xml+rss;
|
||||
|
||||
server {
|
||||
# listen on port 80
|
||||
|
||||
Reference in New Issue
Block a user