mirror of
				https://github.com/openimsdk/open-im-server.git
				synced 2025-10-27 05:52:29 +08:00 
			
		
		
		
	* fix: create group type limit * fix: group notification * fix: group notification * fix: group notification * chore: group member hash * chore: group member hash * chore: group member hash * chore: group member hash * test: log * test: log * test: log * test: log * test: log * sync: hash code * sync: hash code * sync: hash code * test: log * test: log * test: log * test: log * test: log * fix: time stamp * fix: minio sign endpoint opts * cicd: robot automated Change Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * fix: minio bucket url * fix: op user info * cicd: robot automated Change Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * fix: importFriends Conversation * fix: importFriends Notification * cicd: robot automated Change Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * fix: importFriends Notification --------- Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: withchao <withchao@users.noreply.github.com>
		
			
				
	
	
		
			22 lines
		
	
	
		
			542 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			542 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| package kafka
 | |
| 
 | |
| import (
 | |
| 	"github.com/Shopify/sarama"
 | |
| 
 | |
| 	"github.com/OpenIMSDK/Open-IM-Server/pkg/common/config"
 | |
| 	"github.com/OpenIMSDK/Open-IM-Server/pkg/common/tls"
 | |
| )
 | |
| 
 | |
| // SetupTLSConfig set up the TLS config from config file.
 | |
| func SetupTLSConfig(cfg *sarama.Config) {
 | |
| 	if config.Config.Kafka.TLS != nil {
 | |
| 		cfg.Net.TLS.Enable = true
 | |
| 		cfg.Net.TLS.Config = tls.NewTLSConfig(
 | |
| 			config.Config.Kafka.TLS.ClientCrt,
 | |
| 			config.Config.Kafka.TLS.ClientKey,
 | |
| 			config.Config.Kafka.TLS.CACrt,
 | |
| 			[]byte(config.Config.Kafka.TLS.ClientKeyPwd),
 | |
| 		)
 | |
| 	}
 | |
| }
 |