🎬 火宝短剧 - 基于AI的一站式短剧生成平台 《一句话生成完整短剧,从剧本到成片全自动化》 Huobao Drama - An AI-Powered End-to-End Short Drama Generator "One Sentence to Complete Drama: Fully Automated from Script to Final Video"
TypeScript
init
Connor7db3545a0185
diff --git a/.gitignore b/.gitignoreindex 9250e78..ce71c43 100644--- a/.gitignore+++ b/.gitignore@@ -47,12 +47,15 @@ tmp/temp/# Data (database and uploaded files)-../../GolandProjects/huobao-drama/data/drama_generator.db-../../GolandProjects/huobao-drama/data/storage/videos/*-!../../GolandProjects/huobao-drama/data/storage/videos/.gitkeep+data/drama_generator.db+data/storage/videos/*+!data/storage/videos/.gitkeep# Frontend build output-../../GolandProjects/huobao-drama/web/dist/-../../GolandProjects/huobao-drama/web/node_modules/-../../GolandProjects/huobao-drama/web/.vite/-../../GolandProjects/huobao-drama/web/.env.local+web/dist/+web/node_modules/+web/.vite/+web/.env.local++# Config file (use config.example.yaml as template)+configs/config.yamldiff --git a/README.md b/README.mdindex f22fd36..d2990bd 100644--- a/README.md+++ b/README.md@@ -1,4 +1,4 @@-# 🎬 Chatfire Anime - AI短剧生成平台+# 🎬 Huobao Drama - AI短剧生成平台<div align="center">@@ -16,7 +16,7 @@## 📖 项目简介-Chatfire Anime 是一个基于AI的短剧自动化生产平台,实现从剧本生成、角色设计、分镜制作到视频合成的全流程自动化。+Huobao Drama 是一个基于AI的短剧自动化生产平台,实现从剧本生成、角色设计、分镜制作到视频合成的全流程自动化。### 🎯 核心价值@@ -76,7 +76,7 @@ Chatfire Anime 是一个基于AI的短剧自动化生产平台,实现从剧本## 🏗️ 项目结构```-chatfire-anime/+huobao-drama/├── api/ # API 层│ ├── handlers/ # HTTP 请求处理器│ ├── middlewares/ # 中间件(CORS、日志等)@@ -168,7 +168,7 @@ ffmpeg -version```yamlapp:- name: "Chatfire Anime"+ name: "Huobao Drama"mode: "development" # development / productionport: 5678@@ -202,7 +202,7 @@ logging:```bash# 克隆项目git clone <repository-url>-cd chatfire-anime+cd huobao-drama# 安装Go依赖go mod download@@ -267,18 +267,18 @@ npm run buildcd ..# 2. 编译后端-go build -o chatfire-anime .+go build -o huobao-drama .```生成文件:-- `chatfire-anime` - 后端可执行文件+- `huobao-drama` - 后端可执行文件- `web/dist/` - 前端静态文件(已嵌入后端)#### 2. 准备部署文件需要上传到服务器的文件:```-chatfire-anime # 后端可执行文件+huobao-drama # 后端可执行文件configs/config.yaml # 配置文件data/ # 数据目录(可选,首次运行自动创建)```@@ -287,39 +287,39 @@ data/ # 数据目录(可选,首次运行自动创建)```bash# 上传文件到服务器-scp chatfire-anime user@server:/opt/chatfire-anime/-scp configs/config.yaml user@server:/opt/chatfire-anime/configs/+scp huobao-drama user@server:/opt/huobao-drama/+scp configs/config.yaml user@server:/opt/huobao-drama/configs/# SSH登录服务器ssh user@server# 修改配置文件-cd /opt/chatfire-anime+cd /opt/huobao-dramavim configs/config.yaml# 设置mode为production# 配置域名和存储路径# 赋予执行权限-chmod +x chatfire-anime+chmod +x huobao-drama# 启动服务-./chatfire-anime+./huobao-drama```#### 4. 使用 systemd 管理服务-创建服务文件 `/etc/systemd/system/chatfire-anime.service`:+创建服务文件 `/etc/systemd/system/huobao-drama.service`:```ini[Unit]-Description=Chatfire Anime Service+Description=Huobao Drama ServiceAfter=network.target[Service]Type=simpleUser=www-data-WorkingDirectory=/opt/chatfire-anime-ExecStart=/opt/chatfire-anime/chatfire-anime+WorkingDirectory=/opt/huobao-drama+ExecStart=/opt/huobao-drama/huobao-dramaRestart=on-failureRestartSec=10@@ -330,9 +330,9 @@ WantedBy=multi-user.target启动服务:```bashsudo systemctl daemon-reload-sudo systemctl enable chatfire-anime-sudo systemctl start chatfire-anime-sudo systemctl status chatfire-anime+sudo systemctl enable huobao-drama+sudo systemctl start huobao-drama+sudo systemctl status huobao-drama```#### 5. Nginx 反向代理@@ -351,7 +351,7 @@ server {# 静态文件直接访问location /static/ {- alias /opt/chatfire-anime/data/storage/;+ alias /opt/huobao-drama/data/storage/;}}```@@ -458,7 +458,7 @@ cd web && npm run dev # 启动前端开发服务器# 编译构建cd web && npm run build && cd .. # 构建前端-go build -o chatfire-anime . # 编译后端+go build -o huobao-drama . # 编译后端# 依赖管理go mod download # 下载Go依赖@@ -473,7 +473,7 @@ cd web && npm run lint && cd .. # 前端代码检查# 清理go clean # 清理Go构建缓存rm -rf web/dist # 清理前端构建产物-rm -f chatfire-anime # 删除可执行文件+rm -f huobao-drama # 删除可执行文件# 测试go test ./... # 运行Go测试@@ -545,7 +545,7 @@ A: GORM会在首次启动时自动创建表,检查日志确认迁移是否成## 📧 联系方式## 项目交流群-+- 提交 [Issue](../../issues)- 发送邮件至项目维护者@@ -555,6 +555,6 @@ A: GORM会在首次启动时自动创建表,检查日志确认迁移是否成**⭐ 如果这个项目对你有帮助,请给一个Star!**-Made with ❤️ by Chatfire Team+Made with ❤️ by Huobao Team</div>diff --git a/configs/config.yaml b/configs/config.yamldeleted file mode 100644index e3e56a4..0000000--- a/configs/config.yaml+++ /dev/null@@ -1,30 +0,0 @@-app:- name: "Drama Generator API"- version: "1.0.0"- debug: true--server:- port: 5678- host: "0.0.0.0"- cors_origins:- - "http://localhost:3000"- - "http://localhost:5173"- - "http://localhost:3012"- read_timeout: 600- write_timeout: 600--database:- type: "sqlite"- path: "./data/drama_generator.db"- max_idle: 10- max_open: 100--storage:- type: "local"- local_path: "./data/storage"- base_url: "http://localhost:5678/static"--ai:- default_text_provider: "openai"- default_image_provider: "openai"- default_video_provider: "doubao"diff --git a/drama.png b/drama.pngindex 406aea3..d20193d 100644Binary files a/drama.png and b/drama.png differdiff --git a/web/src/views/drama/DramaWorkflow.vue b/web/src/views/drama/DramaWorkflow.vueindex 5a73586..8a88138 100644--- a/web/src/views/drama/DramaWorkflow.vue+++ b/web/src/views/drama/DramaWorkflow.vue@@ -683,10 +683,6 @@ const fixImageUrl = (url: string | undefined | null): string => {if (!url) return ''// 如果是blob URL,直接返回if (url.startsWith('blob:')) return url- // 强制使用HTTP协议访问MinIO,避免HTTPS导致的SSL错误- if (url.includes('redfile.chatfire.site') || url.includes('cf.chatfire.site')) {- return url.replace(/^https:/i, 'http:')- }return url}