chore: nginx增加html文件访问支持

This commit is contained in:
xboard 2024-01-06 14:54:39 +08:00
parent ca1758dc48
commit 11591b9708

View File

@ -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 ~ .* {