From 92027456735c631acae544cfd2203bb50cf8006a Mon Sep 17 00:00:00 2001 From: saravahdatipour Date: Mon, 13 Jan 2025 11:28:48 +0100 Subject: [PATCH] Fix mime type error blocking css and js files --- nginx.conf | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/nginx.conf b/nginx.conf index aefec62..92911a2 100644 --- a/nginx.conf +++ b/nginx.conf @@ -12,4 +12,11 @@ server { try_files $uri $uri/ =404; add_header Content-Type "text/html; charset=utf-8"; } + location ~* \.(css|js|svg|png|jpg|jpeg|gif|ico|woff|woff2|ttf|eot)$ { + root /var/www/html; + try_files $uri =404; + access_log off; + expires max; + add_header Cache-Control "public"; + } } \ No newline at end of file