Configure GZIP compression in Nginx
This commit is contained in:
parent
c104e7b1b5
commit
a0be785470
1 changed files with 13 additions and 0 deletions
|
@ -18,6 +18,19 @@ http {
|
||||||
tcp_nodelay on;
|
tcp_nodelay on;
|
||||||
|
|
||||||
gzip on;
|
gzip on;
|
||||||
|
gzip_comp_level 6;
|
||||||
|
gzip_min_length 256;
|
||||||
|
gzip_proxied any;
|
||||||
|
gzip_types
|
||||||
|
application/atom+xml
|
||||||
|
application/javascript
|
||||||
|
application/json
|
||||||
|
application/rss+xml
|
||||||
|
image/svg+xml
|
||||||
|
text/css
|
||||||
|
text/html
|
||||||
|
text/plain
|
||||||
|
text/xml;
|
||||||
|
|
||||||
server_tokens off;
|
server_tokens off;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue