為了獲取更多最新內容及功能更新,請直接訪問我們的首頁以查看DzzOffice筆記的最新地址。
對文件進行了任意修改均需要保存更改并重啟服務以使配置更改生效
使用任意可用的文本編輯器打開 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
更多建議: