add nginx configuration

This commit is contained in:
rick 2023-01-18 00:20:04 +01:00
parent e8b9c8625d
commit 26df1655e4
Signed by: Rick
GPG key ID: 4A6223D66294EB20

14
nginx.conf Normal file
View file

@ -0,0 +1,14 @@
server {
server_name gyiwr.tf;
root /var/www/gyiwr;
index index.html index.htm index.nginx-debian.html;
location / {
try_files $uri $uri/ =404;
}
location ~* \.(png|jpg|jpeg|gif)$ {
expires 365d;
add_header Cache-Control "public, no-transform";
}
}