Skip to content

Commit

Permalink
Update Nginx.conf
Browse files Browse the repository at this point in the history
  • Loading branch information
Acenl12 authored Nov 20, 2023
1 parent 2317084 commit 40d120b
Showing 1 changed file with 27 additions and 5 deletions.
32 changes: 27 additions & 5 deletions Nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@ worker_processes auto;
pid /run/nginx.pid;
include /etc/nginx/modules-enabled/*.conf;
events {
worker_connections 768;
worker_connections 8092;
# multi_accept on;
}
http {
##
# Basic Settings
##
sendfile on;
sendfile off;
tcp_nopush on;
types_hash_max_size 2048;
# server_tokens off;
# server_names_hash_bucket_size 64;
server_tokens off;
server_names_hash_bucket_size 64;
# server_name_in_redirect off;
include /etc/nginx/mime.types;
default_type application/octet-stream;
Expand All @@ -38,7 +38,29 @@ http {
# gzip_http_version 1.1;
# gzip_types text/plain text/css
application/json application/javascript text/xml application/xml application/xml+rss text/javascript;
##
gzip_disable "msie6";

gzip_comp_level 6;
gzip_min_length 1100;
gzip_buffers 16 8k;
gzip_proxied any;
gzip_types
text/plain
text/css
text/js
text/xml
text/javascript
application/javascript
application/x-javascript
application/json
application/xml
application/rss+xml
image/svg+xml;
proxy_connect_timeout 1h;
proxy_send_timeout 1h;
proxy_read_timeout 1h;
tcp_nodelay on; ## Sends data as fast as it can not buffering large chunks, saves about 200ms per request.
##
# Virtual Host Configs
##
include /etc/nginx/conf.d/*.conf; include /etc/nginx/sites-enabled/*;
Expand Down

0 comments on commit 40d120b

Please sign in to comment.