mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 11:39:01 +01: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] | ||||
| #syncServerHost= | ||||
| #syncServerTimeout= | ||||
| #syncProxy= | ||||
| #syncServerProxy= | ||||
| @ -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 || "" | ||||
|     } | ||||
| 
 | ||||
| }; | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Panagiotis Papadopoulos
						Panagiotis Papadopoulos