diff --git a/config/nginx/nginx-burnaware-io.conf b/config/nginx/nginx-burnaware-io.conf new file mode 100644 index 0000000..f3a756f --- /dev/null +++ b/config/nginx/nginx-burnaware-io.conf @@ -0,0 +1,41 @@ +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"; + } +}