feat: 收口文档桥接与 OnlyOffice/Sidebar 回归
- 为 documents.save/meta/content、blocks.patch 与 sidebar.dataset.list 补齐 Rust 协议映射、共享契约与桥接执行器 - 对齐 BlockNote、Mindmap、OnlyOffice 的保存/路由元信息,并补真实浏览器回归脚本与 OnlyOffice 部署基线 - 忽略 Rust 本地构建产物与 Harness 调试状态文件,避免临时产物进入仓库历史
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
# ONLYOFFICE 部署说明
|
||||
|
||||
当前主仓 ONLYOFFICE 文档服务部署入口在:
|
||||
|
||||
- `./docker-compose.yml`
|
||||
|
||||
约定:
|
||||
|
||||
- `8082` 作为当前主仓默认 ONLYOFFICE DocumentServer 端口。
|
||||
- 镜像版本统一由当前主仓维护,不再依赖历史仓 `mnote-rust` 的 compose。
|
||||
- 仅挂载 `src/components/onlyoffice/onlyoffice-plugins` 到容器的 `sdkjs-plugins`。
|
||||
- 不覆盖容器自带 `web-apps`,避免升级后被历史静态资源压回旧版本。
|
||||
|
||||
启动:
|
||||
|
||||
```bash
|
||||
cd /mnt/Data1T/mnote/infra/onlyoffice
|
||||
docker compose up -d
|
||||
```
|
||||
|
||||
检查:
|
||||
|
||||
```bash
|
||||
curl -I http://127.0.0.1:8082/web-apps/apps/api/documents/api.js
|
||||
```
|
||||
@@ -0,0 +1,20 @@
|
||||
version: "3.9"
|
||||
|
||||
services:
|
||||
onlyoffice-documentserver:
|
||||
image: onlyoffice/documentserver:9.3.1
|
||||
container_name: mnote-onlyoffice-documentserver
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "8082:80"
|
||||
environment:
|
||||
JWT_ENABLED: "true"
|
||||
JWT_SECRET: "change-me-to-strong-secret"
|
||||
JWT_HEADER: "Authorization"
|
||||
JWT_IN_BODY: "true"
|
||||
USE_UNAUTHORIZED_STORAGE: "true"
|
||||
extra_hosts:
|
||||
- "host.docker.internal:host-gateway"
|
||||
volumes:
|
||||
# 说明:只挂插件目录,不覆盖 DocumentServer 自带 web-apps,避免升级后静态资源被旧版本文件覆盖。
|
||||
- ../../src/components/onlyoffice/onlyoffice-plugins:/var/www/onlyoffice/documentserver/sdkjs-plugins:ro
|
||||
Reference in New Issue
Block a user