DifyServer 是一个用于管理 Dify 多租户和用户权限的管理系统。它提供了用户管理、工作空间管理、权限控制等功能。
- 用户管理:创建、删除用户,修改密码
- 工作空间管理:创建和管理多个工作空间
- 权限控制:管理用户与工作空间的关联关系
- 知识库展示:查看各工作空间的知识库
- 后端:Go + Gin + GORM
- 前端:React + TypeScript + Ant Design
- 数据库:PostgreSQL
创建 config.yaml 文件:
database:
host: "localhost"
port: 5432
user: "postgres"
password: "your_password"
dbname: "dify"
admins:
- "[email protected]"
- "[email protected]"- 从 Releases 下载最新版本
- 解压下载的文件
- 修改 config.yaml 配置文件
- 运行可执行文件:
- Windows: difyserver.exe
- Linux: ./difyserver
- 克隆仓库:
git clone https://github.com/weiwhy/DifyServer.git- 安装前端依赖:
cd frontend
npm install- 构建前端:
npm run build- 编译后端:
go buildMIT License
欢迎提交 Issue 和 Pull Request!