configures nginx for serving .gz files
This commit is contained in:
parent
9a231e50e2
commit
52cf652608
@ -35,4 +35,15 @@ server {
|
|||||||
location ~ /\.ht {
|
location ~ /\.ht {
|
||||||
deny all;
|
deny all;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
gzip on;
|
||||||
|
gzip_types application/json;
|
||||||
|
|
||||||
|
gzip_http_version 1.0;
|
||||||
|
gzip_static on;
|
||||||
|
|
||||||
|
location ~* \.(js|css|ttf|json)$ {
|
||||||
|
gzip_static on;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user