0.2.1 onlyoffice修复

This commit is contained in:
liaibo
2026-01-17 10:12:53 +08:00
parent 94957dc361
commit 19907bccdc
102 changed files with 7188 additions and 186 deletions
+47
View File
@@ -0,0 +1,47 @@
# Convex 自托管(Windows 本机)
本目录用于在本机通过 Docker Compose 启动 Convex backend + dashboard,并使用 backend 自身的持久化卷存储(包含数据库与文件存储)。
## 启动
1. 确保 `infra/convex/.env` 存在(已在本仓库中生成,且被 `.gitignore` 忽略)。
2. 在本目录执行:
```bash
docker compose --env-file .env up -d
```
## 生成 Dashboard / CLI admin key
在本目录执行:
```bash
docker compose --env-file .env exec backend ./generate_admin_key.sh
```
## 访问地址(默认)
- Dashboard`http://localhost:6791`
- Backend`http://127.0.0.1:3210`
- HTTP Actions`http://127.0.0.1:3211`
- 文件存储:由 Convex 管理(Dashboard 的 Files 页面可查看)
## 快速验证(可选)
### 1) 验证 Convex functions 可用
`wolai-frontend/` 执行:
```bash
npx convex dev --once --tail-logs disable --env-file .env.local --run ping:ping
```
### 2) 验证固定开发用户(阶段 3)
启动前端后访问:`http://localhost:3000/api/dev/whoami`
### 3) 验证异步任务骨架(阶段 5)
启动前端后:
- `POST http://localhost:3000/api/dev/jobs/demo`body 可选:`{ "ms": 800 }`)创建 demo job
- `GET http://localhost:3000/api/dev/jobs/demo?id=<jobId>` 查询状态(queued/running/succeeded/failed
+48
View File
@@ -0,0 +1,48 @@
services:
backend:
# 说明:官方自托管镜像。需要时可将 :latest 固定为特定版本。
image: ghcr.io/get-convex/convex-backend:latest
stop_grace_period: 10s
stop_signal: SIGINT
ports:
- "${PORT:-3210}:3210"
- "${SITE_PROXY_PORT:-3211}:3211"
volumes:
- convex_data_v1:/convex/data
environment:
- ACTIONS_USER_TIMEOUT_SECS
- CONVEX_CLOUD_ORIGIN=${CONVEX_CLOUD_ORIGIN:-http://127.0.0.1:${PORT:-3210}}
- CONVEX_RELEASE_VERSION_DEV
- CONVEX_SITE_ORIGIN=${CONVEX_SITE_ORIGIN:-http://127.0.0.1:${SITE_PROXY_PORT:-3211}}
- DATABASE_URL
- DISABLE_BEACON
- DOCUMENT_RETENTION_DELAY=${DOCUMENT_RETENTION_DELAY:-172800} # 降低默认保留到 2 天
- DO_NOT_REQUIRE_SSL
- HTTP_SERVER_TIMEOUT_SECONDS
- INSTANCE_NAME
- INSTANCE_SECRET
- MYSQL_URL
- POSTGRES_URL
- REDACT_LOGS_TO_CLIENT
- RUST_BACKTRACE
- RUST_LOG=${RUST_LOG:-info}
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3210/version"]
interval: 5s
start_period: 10s
dashboard:
image: ghcr.io/get-convex/convex-dashboard:latest
stop_grace_period: 10s
stop_signal: SIGINT
ports:
- "${DASHBOARD_PORT:-6791}:6791"
environment:
- NEXT_PUBLIC_DEPLOYMENT_URL=${NEXT_PUBLIC_DEPLOYMENT_URL:-http://127.0.0.1:${PORT:-3210}}
- NEXT_PUBLIC_LOAD_MONACO_INTERNALLY
depends_on:
backend:
condition: service_healthy
volumes:
convex_data_v1: