Skip to content

Commit

Permalink
MODIFIED: optimized gzip settings
Browse files Browse the repository at this point in the history
  • Loading branch information
sd-ditoy committed Feb 7, 2024
1 parent 5a0dc7f commit 3203fde
Showing 1 changed file with 24 additions and 4 deletions.
28 changes: 24 additions & 4 deletions docker/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,31 @@ http {

gzip on;
gzip_vary on;
# gzip_proxied any;
gzip_proxied any;
gzip_comp_level 6;
# gzip_buffers 16 8k;
# 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_buffers 16 8k;
gzip_http_version 1.1;
gzip_min_length 256;
gzip_types
application/atom+xml
application/geo+json
application/javascript
application/x-javascript
application/json
application/ld+json
application/manifest+json
application/rdf+xml
application/rss+xml
application/xhtml+xml
application/xml
font/eot
font/otf
font/ttf
image/svg+xml
text/css
text/javascript
text/plain
text/xml;

## Block spammers and other unwanted visitors ##
# include /etc/nginx/blockips.conf;
Expand Down

0 comments on commit 3203fde

Please sign in to comment.