...
- Windows (PowerShell):
Code Block powershell powershell $bytes = New-Object byte[] 32 $generator = [System.Security.Cryptography.RandomNumberGenerator]::Create() $generator.GetBytes($bytes) [Convert]::ToBase64String($bytes) $generator.Dispose()
- Linux:
Code Block bash bash openssl rand -base64 32
- Windows (PowerShell):
- Укажите полученное значение в параметре JwtSecret файла onlyoffice.json.
- Откройте файл local.json на сервере ONLYOFFICE Docs:
- Windows:
C:\Program Files\ONLYOFFICE\DocumentServer\config\local.json - Linux:
/etc/onlyoffice/documentserver/local.json
- Windows:
- Включите проверку JWT и укажите тот же секрет (добавьте в файл local.json):
Code Block { "services": { "CoAuthoring": { "token": { "enable": { "browser": true, "request": { "inbox": true, "outbox": true } } }, "secret": { "inbox": { "string": "<JWT_SECRET>" }, "outbox": { "string": "<JWT_SECRET>" }, "session": { "string": "<JWT_SECRET>" } } } } }
...