Compare commits

..
2 Commits
Author SHA1 Message Date
dongsk 7be6ff06b6 配置前端 npm 镜像源 2026-09-03 12:03:11 +08:00
dongsk 1a7184806b 添加favicon.ico 2026-09-02 19:08:17 +08:00
5 changed files with 10 additions and 1 deletions
+1
View File
@@ -0,0 +1 @@
registry=https://registry.npmmirror.com
+1 -1
View File
@@ -7,7 +7,7 @@ WORKDIR /app
COPY package.json package-lock.json* ./
# 安装依赖
RUN npm install
RUN npm install --registry=https://registry.npmmirror.com
# 复制源码
COPY . .
+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