Document Server Config - Persistence

Fonte: ARDITI - WIKI
Saltar para a navegação Saltar para a pesquisa

When OnlyOffice updates to a newer version, the following config file gets overwritten:

/etc/onlyoffice/documentserver/local.json

This interferes with OnlyOffice's integration with Nextcloud and to address this issue, we need to copy this customized config file:

/etc/onlyoffice/documentserver/local.json.20200912-133849

Before copying please check the differences between the two config files by using colordiff

colordiff /etc/onlyoffice/documentserver/local.json.20200912-133849 /etc/onlyoffice/documentserver/local.json

The differences should be as follows:

18,19c18,19
 <             "inbox": false,
 <             "outbox": false
 ---
 >             "inbox": true,
 >             "outbox": true
21c21
 <           "browser": false
 ---
 >           "browser": true
32c32
 <           "string": "secret"
 ---
 >           "string": "ARD1T1-secret"
35c35
 <           "string": "secret"
 ---
 >           "string": "ARD1T1-secret"
38c38
 <           "string": "secret"
 ---
 >           "string": "ARD1T1-secret"

After making sure these are the ONLY differences, you can proceed to copy the configuration over the default one:

sudo cp /etc/onlyoffice/documentserver/local.json.20200912-133849 /etc/onlyoffice/documentserver/local.json

Finally, we need to restart the supervisorctl process to re-apply the new configurations:

sudo supervisorctl restart all