feat(api): 新增素材检索 API 服务(图标/海报检索 + SVG 直链 + Key 鉴权 + 中文语义检索)

This commit is contained in:
sgp
2026-11-04 16:42:02 +08:00
parent 9e222877ea
commit dce05d6516
15 changed files with 1848 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
# 画个标素材 API —— 追加到 /etc/nginx/sites-enabled/drawlogo-zhuig-com.conf 的 443 server 块内
# 必须用 ^~:否则 /api/v1/icons/xxx.svg 会被下面的 \.svg$ 正则 location 截走 → 404
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;
}