Skip to content

Commit

Permalink
chore: nginx增加html文件访问支持
Browse files Browse the repository at this point in the history
  • Loading branch information
xboard committed Jan 6, 2024
1 parent ca1758d commit 11591b9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .docker/etc/nginx/http.d/default.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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 ~ .* {
Expand Down

0 comments on commit 11591b9

Please sign in to comment.