mirror of
https://github.com/ONLYOFFICE/server.git
synced 2026-04-07 14:04:35 +08:00
228 lines
5.5 KiB
JSON
228 lines
5.5 KiB
JSON
{
|
|
"statsd": {
|
|
"useMetrics": false,
|
|
"host": "localhost",
|
|
"port": "8125",
|
|
"prefix": "ds."
|
|
},
|
|
"log": {
|
|
"filePath": "",
|
|
"options": { "reloadSecs": 60 }
|
|
},
|
|
"queue": {
|
|
"visibilityTimeout": 300,
|
|
"retentionPeriod": 900
|
|
},
|
|
"storage": {
|
|
"name": "storage-s3",
|
|
"region": "",
|
|
"endpoint": "http://localhost/s3",
|
|
"bucketName": "cache",
|
|
"storageFolderName": "files",
|
|
"urlExpires": 604800,
|
|
"accessKeyId": "AKID",
|
|
"secretAccessKey": "SECRET",
|
|
"useRequestToGetUrl": false,
|
|
"useSignedUrl": false,
|
|
"externalHost": ""
|
|
},
|
|
"rabbitmq": {
|
|
"url": "amqp://guest:guest@localhost:5672",
|
|
"socketOptions": {},
|
|
"exchangepubsub": "ds.pubsub",
|
|
"queueconverttask": "ds.converttask",
|
|
"queueconvertresponse": "ds.convertresponse",
|
|
"exchangeconvertdead": "ds.exchangeconvertdead",
|
|
"queueconvertdead": "ds.convertdead"
|
|
},
|
|
"dnscache": {
|
|
"enable" : true,
|
|
"ttl" : 300,
|
|
"cachesize" : 1000
|
|
},
|
|
"services": {
|
|
"CoAuthoring": {
|
|
"server": {
|
|
"port": 8000,
|
|
"workerpercpu": 1,
|
|
"mode": "development",
|
|
"fonts_route": "fonts/",
|
|
"sockjsUrl": "",
|
|
"limits_tempfile_upload": 104857600,
|
|
"limits_image_size": 26214400,
|
|
"limits_image_download_timeout": 120,
|
|
"editor_settings_spellchecker_url": "/spellchecker",
|
|
"callbackRequestTimeout": 120,
|
|
"healthcheckfilepath": "../public/healthcheck.docx",
|
|
"savetimeoutdelay": 5000,
|
|
"edit_singleton": false
|
|
},
|
|
"autoAssembly": {
|
|
"enable": true,
|
|
"intervalWithoutChanges": "1m",
|
|
"checkInterval": "1m",
|
|
"minRetentionPeriod": "1m"
|
|
},
|
|
"utils": {
|
|
"utils_common_fontdir": "null",
|
|
"utils_fonts_search_patterns": "*.ttf;*.ttc;*.otf",
|
|
"resource_expires": 31536000,
|
|
"limits_image_types_upload": "jpg;png;gif;bmp",
|
|
"limits_image_types_copy": "jpg;png;gif;bmp;emf;wmf;svg;txt;bin"
|
|
},
|
|
"sql": {
|
|
"type": "postgres",
|
|
"tableChanges": "doc_changes",
|
|
"tableResult": "task_result",
|
|
"dbHost": "localhost",
|
|
"dbPort": 5432,
|
|
"dbName": "onlyoffice",
|
|
"dbUser": "onlyoffice",
|
|
"dbPass": "onlyoffice",
|
|
"charset": "utf8",
|
|
"connectionlimit": 10,
|
|
"max_allowed_packet": 1048575
|
|
},
|
|
"redis": {
|
|
"name": "redis",
|
|
"prefix": "ds:",
|
|
"host": "localhost",
|
|
"port": 6379
|
|
},
|
|
"pubsub": {
|
|
"name": "pubsubRabbitMQ",
|
|
"maxChanges": 1000
|
|
},
|
|
"expire": {
|
|
"saveLock": 60,
|
|
"presence": 300,
|
|
"locks": 604800,
|
|
"changeindex": 86400,
|
|
"lockDoc": 60,
|
|
"message": 86400,
|
|
"lastsave": 604800,
|
|
"forcesave": 604800,
|
|
"saved": 3600,
|
|
"documentsCron": "0 */2 * * * *",
|
|
"files": 86400,
|
|
"filesCron": "00 00 */1 * * *",
|
|
"filesremovedatonce": 100,
|
|
"sessionidle": "0",
|
|
"sessionabsolute": "0",
|
|
"sessionclosecommand": "2m",
|
|
"pemStdTTL": "1h",
|
|
"pemCheckPeriod": "10m"
|
|
},
|
|
"ipfilter": {
|
|
"rules": [{"address": "*", "allowed": true}],
|
|
"useforrequest": false,
|
|
"errorcode": 401
|
|
},
|
|
"secret": {
|
|
"inbox": {"string": "secret", "file": "", "tenants": {}},
|
|
"outbox": {"string": "secret", "file": ""},
|
|
"session": {"string": "secret", "file": ""}
|
|
},
|
|
"token": {
|
|
"enable": {
|
|
"browser": false,
|
|
"request": {
|
|
"inbox": false,
|
|
"outbox": false
|
|
}
|
|
},
|
|
"inbox": {
|
|
"header": "Authorization",
|
|
"prefix": "Bearer "
|
|
},
|
|
"outbox": {
|
|
"header": "Authorization",
|
|
"prefix": "Bearer ",
|
|
"algorithm": "HS256",
|
|
"expires": "5m"
|
|
},
|
|
"session": {
|
|
"algorithm": "HS256",
|
|
"expires": "5m"
|
|
}
|
|
},
|
|
"plugins": {
|
|
"uri": "/sdkjs-plugins"
|
|
}
|
|
}
|
|
},
|
|
"license" : {
|
|
"license_file": ""
|
|
},
|
|
"FileConverter": {
|
|
"converter": {
|
|
"maxDownloadBytes": 100000000,
|
|
"downloadTimeout": 120,
|
|
"downloadAttemptMaxCount": 3,
|
|
"downloadAttemptDelay": 1000,
|
|
"maxprocesscount": 1,
|
|
"fontDir": "null",
|
|
"presentationThemesDir": "null",
|
|
"filePath": "null",
|
|
"args": "",
|
|
"errorfiles": ""
|
|
}
|
|
},
|
|
"FileStorage": {
|
|
"host": "",
|
|
"port": 4567,
|
|
"directory": "",
|
|
"silent": true
|
|
},
|
|
"SpellChecker": {
|
|
"server": {
|
|
"port": 8080,
|
|
"mode": "development"
|
|
},
|
|
"dictionaries": [
|
|
{"name": "bg_BG", "id": 1026},
|
|
{"name": "ca_ES", "id": 1027},
|
|
{"name": "cs_CZ", "id": 1029},
|
|
{"name": "da_DK", "id": 1030},
|
|
{"name": "de_DE", "id": 1031},
|
|
{"name": "el_GR", "id": 1032},
|
|
{"name": "en_US", "id": 1033},
|
|
{"name": "fr_FR", "id": 1036},
|
|
{"name": "hu_HU", "id": 1038},
|
|
{"name": "it_IT", "id": 1040},
|
|
{"name": "ko_KR", "id": 1042},
|
|
{"name": "nl_NL", "id": 1043},
|
|
{"name": "nb_NO", "id": 1044},
|
|
{"name": "pl_PL", "id": 1045},
|
|
{"name": "pt_BR", "id": 1046},
|
|
{"name": "ro_RO", "id": 1048},
|
|
{"name": "ru_RU", "id": 1049},
|
|
{"name": "hr_HR", "id": 1050},
|
|
{"name": "sk_SK", "id": 1051},
|
|
{"name": "sv_SE", "id": 1053},
|
|
{"name": "tr_TR", "id": 1055},
|
|
{"name": "uk_UA", "id": 1058},
|
|
{"name": "sl_SI", "id": 1060},
|
|
{"name": "lv_LV", "id": 1062},
|
|
{"name": "lt_LT", "id": 1063},
|
|
{"name": "vi_VN", "id": 1066},
|
|
{"name": "az_Latn_AZ", "id": 1068},
|
|
{"name": "eu_ES", "id": 1069},
|
|
{"name": "mn_MN", "id": 1104},
|
|
{"name": "gl_ES", "id": 1110},
|
|
{"name": "lb_LU", "id": 1134},
|
|
{"name": "ca_ES_valencia", "id": 2051},
|
|
{"name": "de_CH", "id": 2055},
|
|
{"name": "en_GB", "id": 2057},
|
|
{"name": "nn_NO", "id": 2068},
|
|
{"name": "pt_PT", "id": 2070},
|
|
{"name": "de_AT", "id": 3079},
|
|
{"name": "en_AU", "id": 3081},
|
|
{"name": "es_ES", "id": 3082},
|
|
{"name": "en_CA", "id": 4105},
|
|
{"name": "en_ZA", "id": 7177},
|
|
{"name": "sr_Latn_RS", "id": 9242},
|
|
{"name": "sr_Cyrl_RS", "id": 10266}
|
|
]
|
|
}
|
|
} |