{
  "log": {
    "filePath": "/etc/onlyoffice/documentserver/log4js/production.json"
  },
  "storage": {
    "fs": {
      "folderPath": "/var/lib/onlyoffice/documentserver/App_Data/cache/files",
      "secretString": "{{ oo_link_secret }}"
    }
  },
  "services": {
    "CoAuthoring": {
{% if oo_secret is defined %}
      "secret": {
        "inbox": {
          "string": "{{ oo_secret }}"
        },
        "outbox": {
          "string": "{{ oo_secret }}"
        }
      },
      "token": {
        "enable": {
          "browser": true,
          "request": {
            "inbox": true,
            "outbox": true
          }
        }
      },
{% endif %}
      "sql": {
        "type": "mysql",
        "dbHost": "{{ oo_db_server }}",
        "dbPort": {{ oo_db_port }},
        "dbName": "{{ oo_db_name }}",
        "dbUser": "{{ oo_db_user }}",
        "dbPass": "{{ oo_db_pass }}",
        "charset": "utf8"
      },
{% if oo_auto_save %}
      "autoAssembly": {
        "enable": true,
        "interval": "5m"
      },
{% endif %}
      "server": {
        "static_content": {
          "/fonts": {
            "path": "/var/www/onlyoffice/documentserver/fonts",
            "options": {"maxAge": "7d"}
          },
          "/sdkjs": {
            "path": "/var/www/onlyoffice/documentserver/sdkjs",
            "options": {"maxAge": "7d"}
          },
          "/web-apps": {
            "path": "/var/www/onlyoffice/documentserver/web-apps",
            "options": {"maxAge": "7d"}
          },
          "/welcome": {
            "path": "/var/www/onlyoffice/documentserver/server/welcome",
            "options": {"maxAge": "7d"}
          },
          "/info": {
            "path": "/var/www/onlyoffice/documentserver/server/info",
            "options": {"maxAge": "7d"}
          },
          "/sdkjs-plugins": {
            "path": "/var/www/onlyoffice/documentserver/sdkjs-plugins",
            "options": {"maxAge": "7d"}
          }
        }
      },
      "utils": {
        "utils_common_fontdir": "/usr/share/fonts"
      },
      "sockjs": {
        "sockjs_url": "/web-apps/vendor/sockjs/sockjs.min.js"
      }
    }
  },
  "license": {
    "license_file": "/var/www/onlyoffice/documentserver/../Data/license.lic",
    "warning_limit_percents": "70"
  },
  "FileConverter": {
    "converter": {
      "fontDir": "/usr/share/fonts",
      "presentationThemesDir": "/var/www/onlyoffice/documentserver/sdkjs/slide/themes",
      "x2tPath": "/var/www/onlyoffice/documentserver/server/FileConverter/bin/x2t",
      "docbuilderPath": "/var/www/onlyoffice/documentserver/server/FileConverter/bin/docbuilder",
      "docbuilderAllFontsPath": "/var/lib/onlyoffice/documentserver/App_Data/docbuilder/AllFonts.js"
    }
  },
  "FileStorage": {
    "directory": "/var/lib/onlyoffice/documentserver/App_Data"
  },
  "SpellChecker": {
    "server": {
      "dictDir": "/var/www/onlyoffice/documentserver/server/SpellChecker/dictionaries"
    }
  }
}
