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