From 650856b140871c0c2132f773b0a854a8ecf413df Mon Sep 17 00:00:00 2001 From: erjemin Date: Wed, 17 Jun 2026 17:58:47 +0300 Subject: [PATCH] =?UTF-8?q?add:=20=D0=BA=D0=BE=D0=BD=D1=84=D0=B8=D0=B3=20n?= =?UTF-8?q?ginx?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/nginx/nginx-burnaware-io.conf | 41 ++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 config/nginx/nginx-burnaware-io.conf 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"; + } +}