From 26df1655e4fd3f17b86c65cb2f1ae009b66122d5 Mon Sep 17 00:00:00 2001 From: rick Date: Wed, 18 Jan 2023 00:20:04 +0100 Subject: [PATCH] add nginx configuration --- nginx.conf | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 nginx.conf diff --git a/nginx.conf b/nginx.conf new file mode 100644 index 0000000..d61d317 --- /dev/null +++ b/nginx.conf @@ -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"; + } +}