Skip to content

Latest commit

 

History

History
29 lines (24 loc) · 1.04 KB

README.md

File metadata and controls

29 lines (24 loc) · 1.04 KB

ONLYOFFICE DocumentServer

cp .env.example .env
docker compose up -d

默认浏览器及 PIG AI 通过 http://localhost:8082 访问 DocumentServer;容器通过 http://host.docker.internal:9999/admin 回调本地 PIG Boot。首版按产品约定关闭 JWT, 并允许 DocumentServer 访问 Docker Desktop 映射的私网 / meta IP,因此应仅部署在 可信内网;接入公网前需恢复 JWT 与网络访问限制。 DocumentServer 数据目录通过 ONLYOFFICE_DATA_DIR 配置,默认写入已被 Git 忽略的 deploy/onlyoffice/data;生产环境建议配置为仓库外的绝对路径。

后端可覆盖以下配置:

pig:
  ai:
    onlyoffice:
      url: http://localhost:8082
      pig-api-url: http://host.docker.internal:9999/admin
      max-file-size: 100MB
      connect-timeout: 5s
      download-timeout: 30s

单体模式使用 /admin;微服务模式应通过网关的知识库路由回调,配置为 http://host.docker.internal:9999/knowledge。微服务初始化脚本已提供该默认值。