All the main settings for Document Sever are stored in the default.json configuration file which is available in the /etc/onlyoffice/documentserver/ folder (for Linux) or %ProgramFiles%\ONLYOFFICE\DocumentServer\config\ (for Windows). There is also the platform-specific production.json file in the same folder, in which the settings relevant for Linux or Windows are stored.
Document server uses the Node.js config module to organize and structure configuration files, so the hierarchy of these files looks like this:
default.json
production.json
local.json
Where all the main settings are stored in the default.json file, with some of them added or overriden by ones from production.json file and any user/developer settings overriden by the ones from local.json configuration file.
If you change the parameters in either default.json or production.json file, all the changes will be lost after Document Server update or Docker container restart (in case you have Document server installed using Docker).
So we strongly recommend that you do not alter the parameters in either default.json or production.json files and use local.json configuration file instead. This file must be created in the same folder with the default.json file and the whole object structure for the necessary parameter must be retained.
The examples of local.json use can be found in the following sections: