29 lines
540 B
Text
29 lines
540 B
Text
|
|
server {
|
||
|
|
listen 80;
|
||
|
|
listen [::]:80;
|
||
|
|
server_name furtka.org www.furtka.org;
|
||
|
|
|
||
|
|
root /var/www/furtka.org;
|
||
|
|
index index.html;
|
||
|
|
|
||
|
|
charset utf-8;
|
||
|
|
|
||
|
|
location / {
|
||
|
|
try_files $uri $uri/ $uri.html =404;
|
||
|
|
}
|
||
|
|
|
||
|
|
location = /favicon.svg {
|
||
|
|
access_log off;
|
||
|
|
log_not_found off;
|
||
|
|
expires 7d;
|
||
|
|
}
|
||
|
|
|
||
|
|
location ~* \.(css|js|svg|woff2?|png|jpg|jpeg|webp|avif)$ {
|
||
|
|
access_log off;
|
||
|
|
expires 30d;
|
||
|
|
add_header Cache-Control "public, immutable";
|
||
|
|
}
|
||
|
|
|
||
|
|
error_page 404 /404.html;
|
||
|
|
}
|