Skip to content

Build your personal knowledge base with Trilium Notes

feat(services/config): rename syncProxy to syncServerProxy for naming consistency

Panagiotis Papadopoulos2c2a40405646
diff --git a/config-sample.ini b/config-sample.ini
index 039a785161..90c7fa17ee 100644
--- a/config-sample.ini
+++ b/config-sample.ini
@@ -31,4 +31,4 @@ trustedReverseProxy=false
[Sync]
#syncServerHost=
#syncServerTimeout=
-#syncProxy=
\ No newline at end of file
+#syncServerProxy=
\ No newline at end of file
diff --git a/src/services/config.ts b/src/services/config.ts
index c851503d02..dbbf644b54 100644
--- a/src/services/config.ts
+++ b/src/services/config.ts
@@ -83,10 +83,9 @@ const config: TriliumConfig = {
syncServerTimeout:
process.env.TRILIUM_SYNC_SERVER_TIMEOUT || iniConfig?.Sync?.syncServerTimeout || "120000",
- // @TriliumNextTODO: check if we can rename misnamed syncProxy to syncServerProxy without
- // breaking backwards compatibility - for naming consistency
syncProxy:
- process.env.TRILIUM_SYNC_SERVER_PROXY || iniConfig?.Sync?.syncProxy || ""
+ // additionally checking in iniConfig for inconsistently named syncProxy for backwards compatibility
+ process.env.TRILIUM_SYNC_SERVER_PROXY || iniConfig?.Sync?.syncProxy || iniConfig?.Sync?.syncServerProxy || ""
}
};