From 76cf93a2c9271801ee3c5200068fd9e00ea769f9 Mon Sep 17 00:00:00 2001 From: xboard Date: Tue, 21 Nov 2023 19:15:32 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20docker=20=E7=8E=AF=E5=A2=83=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0json=E3=80=81ico=E6=96=87=E4=BB=B6=E8=AE=BF=E9=97=AE?= =?UTF-8?q?=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .docker/etc/nginx/http.d/default.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.docker/etc/nginx/http.d/default.conf b/.docker/etc/nginx/http.d/default.conf index dfcf960..80cea3a 100644 --- a/.docker/etc/nginx/http.d/default.conf +++ b/.docker/etc/nginx/http.d/default.conf @@ -15,7 +15,7 @@ server { gzip on; gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript; - location ~* \.(jpg|jpeg|png|gif|js|css|svg|woff2|woff|ttf|eot|wasm)$ { + location ~* \.(jpg|jpeg|png|gif|js|css|svg|woff2|woff|ttf|eot|wasm|json|ico)$ { # 这里将.jpg、.jpeg、.png、.gif、.js和.css文件直接返回给客户端 }