Fix gzip
This commit is contained in:
parent
b84b666845
commit
a28d43f381
@ -48,14 +48,14 @@
|
|||||||
user nginx nginx;
|
user nginx nginx;
|
||||||
daemon off;
|
daemon off;
|
||||||
error_log /dev/stdout info;
|
error_log /dev/stdout info;
|
||||||
gzip on;
|
|
||||||
gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;
|
|
||||||
pid /dev/null;
|
pid /dev/null;
|
||||||
events {}
|
events {}
|
||||||
http {
|
http {
|
||||||
include ${mimeTypes};
|
include ${mimeTypes};
|
||||||
access_log /dev/stdout;
|
access_log /dev/stdout;
|
||||||
server {
|
server {
|
||||||
|
gzip on;
|
||||||
|
gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;
|
||||||
listen 80;
|
listen 80;
|
||||||
index index.php index.html;
|
index index.php index.html;
|
||||||
charset utf-8;
|
charset utf-8;
|
||||||
@ -63,6 +63,7 @@
|
|||||||
add_header X-Frame-Options "SAMEORIGIN";
|
add_header X-Frame-Options "SAMEORIGIN";
|
||||||
add_header X-Content-Type-Options "nosniff";
|
add_header X-Content-Type-Options "nosniff";
|
||||||
location / {
|
location / {
|
||||||
|
gzip_static on;
|
||||||
root ${staticAssetsPath};
|
root ${staticAssetsPath};
|
||||||
try_files $uri $uri/ /index.html;
|
try_files $uri $uri/ /index.html;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user