feat(home): 新增设计中枢首页(工作区/素材/技能/审计分区 + 搜索 + 快捷键 + 最近访问),品牌区可回首页,默认入口切为 home.html

This commit is contained in:
sgp
2026-11-04 18:11:04 +08:00
parent bfd41bcaa2
commit a14670e65a
13 changed files with 977 additions and 26 deletions
+15 -1
View File
@@ -31,7 +31,8 @@ server {
add_header Content-Security-Policy "default-src 'self'; script-src 'self' 'unsafe-inline' 'unsafe-eval'; style-src 'self' 'unsafe-inline' https://fonts.googleapis.com; font-src 'self' https://fonts.gstatic.com; connect-src 'self' https://api.deepseek.com; img-src 'self' data: blob:;" always;
root /opt/drawlogo;
index index.html;
# 默认入口:设计中枢首页(home.html),找不到时回落到 LOGO 工作台
index home.html index.html;
# 静态资源长期缓存(带 ?v= 版本号的 JS/CSS)
location ~* \.(js|css|woff2|ttf|svg|png|jpg|jpeg|gif|ico)$ {
@@ -49,6 +50,19 @@ server {
try_files $uri $uri/ $uri/index.html =404;
}
# 素材 API 反代(必须 ^~:否则 /api/.../*.svg 会被上面的 \.svg$ 正则截走)
location ^~ /api/ {
proxy_pass http://127.0.0.1:7891;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_connect_timeout 10s;
proxy_read_timeout 30s;
proxy_send_timeout 15s;
client_max_body_size 1m;
}
access_log /var/log/nginx/drawlogo_zhuig_access.log;
error_log /var/log/nginx/drawlogo_zhuig_error.log;
}