diff --git a/src/ObsidianLiveSyncSettingTab.ts b/src/ObsidianLiveSyncSettingTab.ts index 17e2e09..1981f5d 100644 --- a/src/ObsidianLiveSyncSettingTab.ts +++ b/src/ObsidianLiveSyncSettingTab.ts @@ -469,6 +469,22 @@ export class ObsidianLiveSyncSettingTab extends PluginSettingTab { } else { addResult("✔ httpd.enable_cors is ok."); } + // If the server is not cloudant, configure request size + if (!this.plugin.settings.couchDB_URI.contains(".cloudantnosqldb.")) { + // REQUEST SIZE + if (Number(responseConfig?.chttpd?.max_http_request_size ?? 0) < 4294967296) { + addResult("❗ chttpd.max_http_request_size is low)"); + addConfigFixButton("Set chttpd.max_http_request_size", "chttpd/max_http_request_size", "4294967296"); + } else { + addResult("✔ chttpd.max_http_request_size is ok."); + } + if (Number(responseConfig?.couchdb?.max_document_size ?? 0) < 50000000) { + addResult("❗ couchdb.max_document_size is low)"); + addConfigFixButton("Set couchdb.max_document_size", "couchdb/max_document_size", "50000000"); + } else { + addResult("✔ couchdb.max_document_size is ok."); + } + } // CORS check // checking connectivity for mobile if (responseConfig?.cors?.credentials != "true") { diff --git a/updates.md b/updates.md index 25604a7..8a165bb 100644 --- a/updates.md +++ b/updates.md @@ -11,8 +11,12 @@ #### Recommended configuration for Self-hosted CouchDB - Set chunk size to around 100 to 250 (10MB - 25MB per chunk) +- *Set batch size to 100 and batch limit to 20 (0.14.2)* - Be sure to `Read chunks online` checked. +#### Minors +- 0.14.2 Fixed issue about retrieving files if synchronisation has been interrupted or failed +- 0.14.3 New test items have been added to `Check database configuration`. ### 0.13.0