chore: docker 环境增加json、ico文件访问支持

This commit is contained in:
xboard 2023-11-21 19:15:32 +08:00
parent 14c88f23ff
commit 76cf93a2c9

View File

@ -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文件直接返回给客户端
}