nginx gzip
parent
bb17a1a7d3
commit
d6dff07d28
|
@ -3,6 +3,11 @@ server {
|
|||
listen [::]:80;
|
||||
server_name localhost;
|
||||
|
||||
gzip on;
|
||||
gzip_types text/html text/plain text/css text/xml text/javascript application/javascript application/x-javascript application/json;
|
||||
gzip_min_length 1024;
|
||||
gzip_vary on;
|
||||
|
||||
root /usr/share/nginx/html;
|
||||
location / {
|
||||
try_files $uri $uri/ /index.html;
|
||||
|
|
Loading…
Reference in New Issue