mirror of
https://github.com/ONLYOFFICE/server.git
synced 2026-04-07 14:04:35 +08:00
133 lines
4.4 KiB
JSON
133 lines
4.4 KiB
JSON
{
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
"$id": "urn:onlyoffice:config:superset:1",
|
|
"title": "Config Patch Schema (Superset for Admin and Tenant)",
|
|
"description": "Superset schema with x-scope markers. Use at runtime to derive per-scope schemas.",
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"services": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"CoAuthoring": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"expire": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"x-scope": ["admin", "tenant"],
|
|
"properties": {
|
|
"filesCron": {"type": "string", "format": "cron6", "x-scope": "admin"},
|
|
"documentsCron": {"type": "string", "format": "cron6", "x-scope": "admin"},
|
|
"files": {"type": "integer", "minimum": 0, "x-scope": "admin"},
|
|
"filesremovedatonce": {"type": "integer", "minimum": 0, "x-scope": "admin"},
|
|
"sessionidle": {"type": "string", "x-scope": ["admin", "tenant"]},
|
|
"sessionabsolute": {"type": "string", "x-scope": ["admin", "tenant"]}
|
|
}
|
|
},
|
|
"autoAssembly": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"x-scope": ["admin", "tenant"],
|
|
"properties": {
|
|
"step": {"type": "string", "enum": ["1m", "5m", "10m", "15m", "30m"]}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"FileConverter": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"converter": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"maxDownloadBytes": {"type": "integer", "minimum": 0, "maximum": 104857600, "x-scope": ["admin", "tenant"]},
|
|
"inputLimits": {
|
|
"type": "array",
|
|
"x-scope": ["admin", "tenant"],
|
|
"items": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"required": ["type"],
|
|
"properties": {
|
|
"type": {
|
|
"type": "string",
|
|
"description": "File types this limit applies to (e.g., 'docx;dotx;docm;dotm')"
|
|
},
|
|
"zip": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"uncompressed": {
|
|
"type": "string",
|
|
"description": "Maximum uncompressed size (e.g., '50MB', '300MB')"
|
|
},
|
|
"template": {
|
|
"type": "string",
|
|
"description": "Template pattern for file matching (e.g., '*.xml')"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"wopi": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"x-scope": ["admin", "tenant"],
|
|
"properties": {
|
|
"enable": {"type": "boolean"}
|
|
}
|
|
},
|
|
"email": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"x-scope": ["admin", "tenant"],
|
|
"properties": {
|
|
"smtpServerConfiguration": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"host": {"type": "string"},
|
|
"port": {"type": "integer", "minimum": 1, "maximum": 65535},
|
|
"auth": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"user": {"type": "string"},
|
|
"pass": {"type": "string"}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"connectionConfiguration": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"disableFileAccess": {"type": "boolean"},
|
|
"disableUrlAccess": {"type": "boolean"}
|
|
}
|
|
},
|
|
"contactDefaults": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"from": {"type": "string"},
|
|
"to": {"type": "string"}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|