diff options
| author | Nantha Sorubakanthan <nantha@mielota.com> | 2026-04-13 21:45:43 +0200 |
|---|---|---|
| committer | Nantha Sorubakanthan <nantha@mielota.com> | 2026-04-13 21:45:43 +0200 |
| commit | 0c913f1e421b9d47c052350c4c1d619e4ac6a297 (patch) | |
| tree | c9124ff04b9252836221c41d2ca2fa133d166251 /debian13/etc/nginx/sites-available/mielota.com | |
Initial commit
Diffstat (limited to 'debian13/etc/nginx/sites-available/mielota.com')
| -rw-r--r-- | debian13/etc/nginx/sites-available/mielota.com | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/debian13/etc/nginx/sites-available/mielota.com b/debian13/etc/nginx/sites-available/mielota.com new file mode 100644 index 0000000..6011611 --- /dev/null +++ b/debian13/etc/nginx/sites-available/mielota.com @@ -0,0 +1,38 @@ +server { + listen 80; + listen [::]:80; + + server_name mielota.com; + + # Limit requests + limit_req zone=req_limit_per_ip burst=5 nodelay; + + root /var/www/mielota.com/public; + index index.html; + + location ~* \.(?:jpg|jpeg|gif|png|ico|svg|webp)$ { + expires 1M; + access_log off; + add_header Cache-Control "max-age=2629746, public"; + } + location ~* \.(?:css|js)$ { + expires 1y; + access_log off; + add_header Cache-Control "max-age=31556952, public"; + } + gzip on; + gzip_min_length 1100; + gzip_buffers 4 32k; + gzip_types text/plain application/x-javascript text/xml text/css; + gzip_vary on; + + # File not found ? + location / { + try_files $uri $uri/ =404; + } + + # 404 custom page + error_page 404 /404.html; + + rewrite ^/march.sh$ https://codeberg.org/mielota/dox/raw/branch/main/home/.local/bin/march.sh permanent; +} |
