Files
codex-bot 8f6d5501f9
Verify and deploy poster studio service / verify-deploy (push) Has been cancelled
feat: initialize poster studio web service
2026-09-19 01:15:31 +08:00

10 lines
1.1 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Poster Studio Server
这是长期运行的 Web 服务模块,不是供前端直接链接的普通库。它管理编辑器项目、素材、预设、Tag 权限、客户端访问令牌、管理员发布和后续导出任务;交互渲染由 `@entroia/poster-editor` 完成。
目录查询支持 `all_tags`、`any_tags`、`none_tags`。客户端 Token 只保存 SHA-256 哈希,并可配置允许/禁止 Tag;请求还必须用 `X-Editor-App` 与 Token 的 `app_key` 对应。静态 Token 无法从公开客户端中真正保密,因此这层只用于产品范围、撤销与额度策略,不能作为用户身份。需要防止跨 App 复制时,由业务后端在验证 PK session 后签发短期 capability,并绑定 `app_key + user_id + install_id + scope + exp`,编辑服务验证签名和重放计数。
Sticker 上传接口会从图片边缘进行连通背景清除,适合纯色或近纯色背景,并保留管理员确认发布流程。复杂照片分割将通过可替换的模型处理器扩展。
首次部署需要仓库 Secrets:`POSTGRES_PASSWORD` 与 `ADMIN_TOKEN`。