mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-27 10:02:59 +08:00
feat(services/config): rename syncProxy to syncServerProxy for naming consistency
backwards compatibility ensured, by still checking the iniConfig for the old value first
This commit is contained in:
parent
9cca9fe074
commit
2c2a404056
@ -31,4 +31,4 @@ trustedReverseProxy=false
|
|||||||
[Sync]
|
[Sync]
|
||||||
#syncServerHost=
|
#syncServerHost=
|
||||||
#syncServerTimeout=
|
#syncServerTimeout=
|
||||||
#syncProxy=
|
#syncServerProxy=
|
@ -83,10 +83,9 @@ const config: TriliumConfig = {
|
|||||||
syncServerTimeout:
|
syncServerTimeout:
|
||||||
process.env.TRILIUM_SYNC_SERVER_TIMEOUT || iniConfig?.Sync?.syncServerTimeout || "120000",
|
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:
|
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 || ""
|
||||||
}
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user