server { listen 80; listen [::]:80; server_name burnaware.io www.burnaware.io; # --- IMPORTANT --- # You should update this path to the actual path of your website files on the server. # For example: /var/www/burnaware.io/html root /home/web/web-data/burnaware.io/html; index index.html; # Logging access_log /var/log/nginx/burnaware.io.access.log; error_log /var/log/nginx/burnaware.io.error.log; # Serve static files directly location / { try_files $uri $uri/ =404; } # Gzip compression for performance gzip on; gzip_vary on; gzip_proxied any; gzip_comp_level 6; gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript; # Browser caching location ~* \.(?:jpg|jpeg|gif|png|ico|cur|gz|svg|svgz|mp4|ogg|ogv|webm|htc)$ { expires 1M; access_log off; add_header Cache-Control "public"; } location ~* \.(?:css|js)$ { expires 7d; access_log off; add_header Cache-Control "public"; } }