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.
|
#Provides the configuration file context in which the directives that affect connection processing are specified.
|
||||||
events {
|
events {
|
||||||
# Sets the maximum number of simultaneous connections that can be opened by a worker process.
|
# 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
|
# Tells the worker to accept multiple connections at a time
|
||||||
multi_accept on;
|
multi_accept on;
|
||||||
}
|
}
|
||||||
@@ -28,7 +28,7 @@ http {
|
|||||||
gzip_comp_level 6;
|
gzip_comp_level 6;
|
||||||
gzip_buffers 16 8k;
|
gzip_buffers 16 8k;
|
||||||
gzip_http_version 1.1;
|
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 {
|
server {
|
||||||
# listen on port 80
|
# listen on port 80
|
||||||
|
|||||||
Reference in New Issue
Block a user