mirror of
				https://github.com/zokradonh/kopano-docker
				synced 2025-11-04 04:17:27 +00:00 
			
		
		
		
	* disable soft delete in kopano-server and add cron in scheduler to execute it there (fixes #187) * fix cron example for backup
		
			
				
	
	
		
			22 lines
		
	
	
		
			564 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			564 B
		
	
	
	
		
			Python
		
	
	
	
	
	
import os
 | 
						|
import kcconf
 | 
						|
 | 
						|
# Component specific configurations
 | 
						|
kcconf.configkopano({
 | 
						|
    r"/etc/kopano/server.cfg":
 | 
						|
    {
 | 
						|
        'log_file': "-",
 | 
						|
        'log_level': "3",
 | 
						|
        'attachment_path': "/kopano/data/attachments/",
 | 
						|
        'user_plugin': "ldap",
 | 
						|
        'server_listen': "*:236",
 | 
						|
        'server_listen_tls': "*:237",
 | 
						|
        'sync_gab_realtime': "no",
 | 
						|
	'softdelete_lifetime': "0",
 | 
						|
        'kcoidc_initialize_timeout': "360"
 | 
						|
    }
 | 
						|
})
 | 
						|
 | 
						|
# Override configs from environment variables
 | 
						|
kcconf.configkopano(kcconf.parseenvironmentvariables(r"/etc/kopano/"))
 |