Update gzip_types
This commit is contained in:
parent
091ad334d2
commit
dff69933c4
@ -18,7 +18,9 @@ http {
|
|||||||
access_log /var/log/nginx/access.log main;
|
access_log /var/log/nginx/access.log main;
|
||||||
sendfile on;
|
sendfile on;
|
||||||
keepalive_timeout 65;
|
keepalive_timeout 65;
|
||||||
|
gzip_static on;
|
||||||
gzip on;
|
gzip on;
|
||||||
|
gzip_types text/html text/css application/json text/javascript text/plain font/ttf;
|
||||||
|
|
||||||
server {
|
server {
|
||||||
listen 80;
|
listen 80;
|
||||||
@ -35,6 +37,7 @@ http {
|
|||||||
index index.php;
|
index index.php;
|
||||||
try_files $uri $uri/ $uri/index.php &uri/index.html =404;
|
try_files $uri $uri/ $uri/index.php &uri/index.html =404;
|
||||||
break;
|
break;
|
||||||
|
expire 4320;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~ \.php$ {
|
location ~ \.php$ {
|
||||||
|
Loading…
Reference in New Issue
Block a user