添加favicon.ico

This commit is contained in:
2026-09-02 19:08:17 +08:00
parent d71a6f4886
commit 1a7184806b
3 changed files with 8 additions and 0 deletions
+1
View File
@@ -2,6 +2,7 @@
<html lang="zh-CN">
<head>
<meta charset="UTF-8" />
<link rel="icon" href="/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>MCP Token 管理后台</title>
<style>
+7
View File
@@ -44,6 +44,13 @@ server {
add_header Pragma "no-cache" always;
}
# favicon(构建产物在 dist 根目录,/console/favicon.ico 需别名指向,优先于正则图片 location)
location = /console/favicon.ico {
alias /usr/share/nginx/html/favicon.ico;
expires 30d;
add_header Cache-Control "public";
}
# 静态资源长缓存(Vite 构建产物带 hash,/console/assets/ → /assets/)
location /console/assets/ {
alias /usr/share/nginx/html/assets/;
Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB