From 11591b9708652484180e6aeadda2b6066b4f00e2 Mon Sep 17 00:00:00 2001 From: xboard Date: Sat, 6 Jan 2024 14:54:39 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20nginx=E5=A2=9E=E5=8A=A0html=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E8=AE=BF=E9=97=AE=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 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.docker/etc/nginx/http.d/default.conf b/.docker/etc/nginx/http.d/default.conf index 014ee3c..6552850 100644 --- a/.docker/etc/nginx/http.d/default.conf +++ b/.docker/etc/nginx/http.d/default.conf @@ -16,8 +16,7 @@ server { gzip_static 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|json|ico)$ { - # 这里将.jpg、.jpeg、.png、.gif、.js和.css文件直接返回给客户端 + location ~* \.(jpg|jpeg|png|gif|js|css|svg|woff2|woff|ttf|eot|wasm|json|ico|html|htm)$ { } location ~ .* {