admin管理员组

文章数量:1530061

注意:

对文件进行了任意修改均需要保存更改并重启服务以使配置更改生效

文件:

使用任意可用的文本编辑器打开 local.json 文件。

对于 Linux:/etc/onlyoffice/documentserver/local.json

对于 Windows:%ProgramFiles%\ONLYOFFICE\DocumentServer\config\local.json

对于 Windows默认:C:\Program Files\ONLYOFFICE\DocumentServer\config\local.json

对于 Docker:使用 docker exec -it <containerID> bash 命令进入 ONLYOFFICE 文档容器并打开/etc/onlyoffice/documentserver/local.json

关闭/开启令牌:

例如:在以下 3 个位置将 false 修改为 true 以启用 Token 验证功能或将 true 修改为 false 关闭 Token 验证功能:

services.CoAuthoring.token.enable.browser

services.CoAuthoring.token.enable.request.inbox

services.CoAuthoring.token.enable.request.outbox

查看编辑密钥:

例如:在以下 3 个部分使用您自己的密钥来进行替换。这里所涉及的密钥必须相同。

services.CoAuthoring.secret.inbox.string

services.CoAuthoring.secret.outbox.string

services.CoAuthoring.secret.session.string

本文标签: 令牌密钥编辑ONLYOFFICE