refactor: split backend into standalone server project

Remove embedded frontend and workflow editor assets, add standalone API deployment configuration, and retain the current backend service updates.
This commit is contained in:
t
2026-08-20 21:46:55 +08:00
parent 954a3fe8d9
commit 3d47227fbd
612 changed files with 515 additions and 97334 deletions
+6 -5
View File
@@ -2,14 +2,15 @@ language: zh-CN
server:
port: 8083
frontendUrl: http://127.0.0.1:3000
cors:
allowedOrigins:
- http://localhost:8083
- http://127.0.0.1:8083
- http://localhost:3000
- http://127.0.0.1:3000
db:
type: mysql
dsn: cs_ai_agent:cs_ai_agent_password@tcp(mysql:3306)/cs_ai_agent?charset=utf8mb4&parseTime=True&loc=Local
type: postgres
dsn: host=host.docker.internal user=cs_ai_agent password=cs_ai_agent_password dbname=cs_ai_agent port=5432 sslmode=disable TimeZone=Asia/Shanghai
logger:
level: info
@@ -26,7 +27,7 @@ storage:
maxUploadSizeMB: 5
local:
root: /app/data/storage
baseUrl: /storage
baseUrl: http://127.0.0.1:8083/storage
oss:
endpoint: ""
bucket: ""
+4 -3
View File
@@ -2,10 +2,11 @@ language: zh-CN
server:
port: 8083
frontendUrl: http://127.0.0.1:3000
cors:
allowedOrigins:
- http://localhost:8083
- http://127.0.0.1:8083
- http://localhost:3000
- http://127.0.0.1:3000
db:
type: sqlite
@@ -35,7 +36,7 @@ storage:
maxUploadSizeMB: 20
local:
root: /app/data/storage
baseUrl: /storage
baseUrl: http://127.0.0.1:8083/storage
oss:
endpoint: ""
bucket: ""
+6 -5
View File
@@ -2,15 +2,16 @@ language: zh-CN
server:
port: 8083
frontendUrl: http://127.0.0.1:3000
cors:
# 浏览器跨域白名单。生产部署时改为实际前端/嵌入站点域名。
allowedOrigins:
- http://127.0.0.1:8083
- http://localhost:8083
- http://127.0.0.1:3000
- http://localhost:3000
db:
type: mysql
dsn: cs_ai_agent:cs_ai_agent_password@tcp(mysql:3306)/cs_ai_agent?charset=utf8mb4&parseTime=True&multiStatements=true&loc=Local
type: postgres
dsn: host=host.docker.internal user=cs_ai_agent password=cs_ai_agent_password dbname=cs_ai_agent port=5432 sslmode=disable TimeZone=Asia/Shanghai
maxIdleConns: 5
maxOpenConns: 20
connMaxIdleTimeSeconds: 300
@@ -36,7 +37,7 @@ storage:
maxUploadSizeMB: 20
local:
root: /app/data/storage
baseUrl: /storage
baseUrl: http://127.0.0.1:8083/storage
oss:
endpoint: ""
bucket: ""