Loading repository data…
Loading repository data…
dulaiduwang003 / repository
开源的 ComfyUI 一体化管理平台 —— 工作流与模型统一管理,内置负载均衡、可视化表单、积分用户系统和后台管理,支持自托管/an all-in-one, open-source platform for managing ComfyUI workflows and AI models. Features load balancing, visual forms, a user system with credits, and a full admin panel. Ready for self-hosting.
A transparent discovery signal based on current public GitHub metadata.
This score does not audit code, security, maintainers, documentation quality, or suitability. Verify the repository and its current documentation before adoption.
面向 AI 创作与工作流的全栈开源项目:前端基于 Vue 3 + Vite + TypeScript + Element Plus,后端采用 Spring Boot 3 多模块架构,集成登录鉴权、聊天(LLM/OpenRouter 流式)、ComfyUI 工作流编排、对象存储(阿里云 OSS)、通知邮件、系统管理等能力。
通过网盘分享的文件:2_整合包ComfyUI-aki-1.6.rar等2个文件 链接: https://pan.baidu.com/s/1hcsZiz367FtK4pJHRWVa_g?pwd=iavj 提取码: iavj
后端是标准的 Spring Boot 多模块项目,可以打包成一个可执行的 JAR 文件进行部署。我们提供了非常详尽的部署文档,覆盖了传统服务器、Docker 容器以及 Kubernetes (K8s) 等多种部署方案。
前端项目基于 Vue 3 和 Vite 构建,部署时需编译成静态文件,并使用 Nginx 等 Web 服务器进行托管和反向代理。
singleton/ # 后端多模块聚合工程(Maven)
application/ # 可执行启动模块(聚合各业务模块)
common/ # 公共依赖:配置、拦截、工具、存储、鉴权等
auth/ # 认证与用户相关接口
comfyui/ # ComfyUI 任务编排与 WebSocket 推送
llm/ # LLM 对话与模型注册(OpenRouter)
notice/ # 通知与公告
oss/ # 阿里云 OSS 能力封装
system/ # 系统管理域
vue/ # 前端工程(Vite)
singleton/application/src/main/resources/application-dev.yml,按需修改以下关键项:
spring.datasource.url/username/password(MySQL)spring.data.redis.host/port/password(Redis)spring.mail.*(可选,邮件验证码/通知)ali.oss.*(阿里云 OSS)comfyui.server[*].url(ComfyUI 服务地址)open-router.api-key(OpenRouter API Key)mvn -f singleton/pom.xml -pl application -am spring-boot:run -Pdev
或打包:
mvn -f singleton/pom.xml -Pdev clean package
java -jar singleton/application/target/application-*.jar
http://localhost:9898/api(server.servlet.context-path=/api)。示例(请用你自己的值替换占位符):
spring:
datasource:
url: jdbc:mysql://127.0.0.1:3306/ghosts?useUnicode=true&serverTimezone=Asia/Shanghai&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&autoReconnect=true&allowMultiQueries=true&useSSL=true # MySQL 连接串
username: root # 数据库用户
password: "<your_mysql_password>" # 数据库密码
data:
redis:
database: 1 # 逻辑库(0-15)
host: 127.0.0.1 # Redis 主机
port: 6379 # Redis 端口
password: "" # 若无密码留空
mail:
host: smtp.qq.com # SMTP 服务器
username: "<your_email>@qq.com" # 发信邮箱
password: "<your_email_auth_code>" # 授权码/应用专用密码
default-encoding: UTF-8 # 编码
properties:
mail:
smtp:
socketFactory:
class: javax.net.ssl.SSLSocketFactory # 启用 SSL
port: 587 # SMTP 端口
admin:
init:
enabled: true # 启用首次自动创建管理员
email: admin@example.com # 管理员邮箱
password: admin123 # 管理员密码
nickname: 系统管理员 # 管理员昵称
initial-credits: 1000000 # 初始积分
ali:
certified:
access-key: "<your_ali_access_key>" # 阿里云 AK
secret-key: "<your_ali_secret_key>" # 阿里云 SK
oss:
endpoint: "oss-accelerate.aliyuncs.com" # OSS 访问端点
bucket-name: "<your_bucket_name>" # OSS 桶名
domain: "https://<your_bucket_name>.oss-accelerate.aliyuncs.com" # oss域名
supported-file-types:
- extension: "jpg" # 扩展名
mimeType: "image/jpeg" # MIME
maxSizeInBytes: 5242880 # 单文件上限
comfyui:
server:
- name: COMFYUI-1号 # 标识
url: http://localhost:8188 # ComfyUI 地址
submit-task-max: 100 # 最大提交队列
task:
max-retry-time: 30 # 单次连接超时(秒)
max-retries: 2 # 失败重试次数
timeout-check-interval: 30 # 超时巡检间隔(分钟)
supported-file-types:
jpg: "image/jpeg" # 表单允许的上传类型
png: "image/png"
open-router:
api-key: "<your_openrouter_api_key>" # OpenRouter API Key
base-url: "https://openrouter.ai/api/v1" # API 地址
connect-timeout: 30000 # 连接超时(ms)
read-timeout: 60000 # 读取超时(ms)
chat:
session-ttl-seconds: 2592000 # 会话 TTL(秒)
truncation:
response-token-reserve: 2000 # 为回复预留 Token
text-chars-per-token: 4 # 文本字符/Token
image-token-estimate: 1500 # 图片估算 Token
file-token-estimate: 4000 # 文件估算 Token
enable-compression: true # 文本压缩
plugins:
web:
enabled: true # 联网搜索
max-results: 5 # 结果上限
file-parser:
enabled: true # 文件解析
pdf:
engine: pdf-text # 识别引擎
static-filename: document.pdf # 默认文件名
remote-registry:
enabled: true # 启用模型拉取
url: "https://openrouter.ai/api/frontend/models" # 模型列表地址
cron: "0 0/30 * * * ?" # 刷新间隔
read-timeout-seconds: 10 # 读取超时(秒)
filter: FREE # 模型范围 ALL/FREE/PAID
auto:
modelId: "<optional_model_id>" # 固定模型(可选)
prefer: FREE # FREE/PAID
audio:
max-size-bytes: 20971520 # 最大音频大小
allowed-formats:
- wav
- mp3
default-format: wav # 默认格式
reasoning:
enabled: true # 开启深度思考
max-tokens: 2000 # 思考 Token 上限
upload:
max-attachment-count: 8 # 单消息附件数
server:
port: 9000 # 开发端口(可改 9898 以匹配前端)
servlet:
context-path: /api # API 前缀
cd vue
npm i
npm run dev
访问:http://localhost:5173
/apiAuthorization: Bearer <token>(Sa-Token)common 模块与各 controller)。欢迎提交 Issue 与 PR:
如果本项目对你有帮助,欢迎赞赏支持(微信):