diff --git a/nginx.conf b/nginx.conf index 6270228..ca23085 100644 --- a/nginx.conf +++ b/nginx.conf @@ -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; } \ No newline at end of file