blob: 60116111da33ad4b70f1dfdea9b22616f96e09bb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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;
}
|