Skip to content

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

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。微服务初始化脚本已提供该默认值。

About

ONLYOFFICE DocumentServer 部署配置,供 PIG AI 知识库对接使用

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors