mirror of
https://github.com/cedar2025/Xboard.git
synced 2025-02-01 23:18:13 -05:00
chore: nginx增加html文件访问支持
This commit is contained in:
parent
ca1758dc48
commit
11591b9708
@ -16,8 +16,7 @@ server {
|
|||||||
gzip_static on;
|
gzip_static on;
|
||||||
gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;
|
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)$ {
|
location ~* \.(jpg|jpeg|png|gif|js|css|svg|woff2|woff|ttf|eot|wasm|json|ico|html|htm)$ {
|
||||||
# 这里将.jpg、.jpeg、.png、.gif、.js和.css文件直接返回给客户端
|
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~ .* {
|
location ~ .* {
|
||||||
|
Loading…
Reference in New Issue
Block a user