Add nginx compression and fix package.json scripts
This commit is contained in:
parent
31b2403a62
commit
f0dcbc88c6
1 changed files with 5 additions and 1 deletions
|
|
@ -1,11 +1,15 @@
|
|||
server {
|
||||
listen 80;
|
||||
server_name _;
|
||||
|
||||
root /usr/share/nginx/html;
|
||||
index index.html;
|
||||
|
||||
# Serve static assets
|
||||
location / {
|
||||
try_files $uri $uri/ /index.html;
|
||||
}
|
||||
|
||||
# Gzip compression
|
||||
gzip on;
|
||||
gzip_types text/plain text/css application/json application/javascript text/xml application/xml;
|
||||
}
|
||||
Loading…
Reference in a new issue