Compare commits
2
Commits
d71a6f4886
..
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7be6ff06b6 | ||
|
|
1a7184806b |
@@ -0,0 +1 @@
|
||||
registry=https://registry.npmmirror.com
|
||||
+1
-1
@@ -7,7 +7,7 @@ WORKDIR /app
|
||||
COPY package.json package-lock.json* ./
|
||||
|
||||
# 安装依赖
|
||||
RUN npm install
|
||||
RUN npm install --registry=https://registry.npmmirror.com
|
||||
|
||||
# 复制源码
|
||||
COPY . .
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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 |
Reference in New Issue
Block a user