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
+22
View File
@@ -0,0 +1,22 @@
[Unit]
Description=画个标素材 API
After=network.target
[Service]
Type=simple
User=ubuntu
Group=ubuntu
WorkingDirectory=/opt/drawlogo-api
ExecStart=/usr/bin/node --max-old-space-size=384 server.js
Restart=always
RestartSec=5
Environment=NODE_ENV=production
# 限制内存,避免索引服务挤占同机其他项目
MemoryMax=900M
NoNewPrivileges=true
PrivateTmp=true
ProtectSystem=full
ReadWritePaths=/opt/drawlogo-api
[Install]
WantedBy=multi-user.target