mirror of
				https://github.com/TeaOSLab/EdgeNode.git
				synced 2025-11-04 16:00:25 +08:00 
			
		
		
		
	
		
			
	
	
		
			25 lines
		
	
	
		
			421 B
		
	
	
	
		
			Go
		
	
	
	
	
	
		
		
			
		
	
	
			25 lines
		
	
	
		
			421 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| 
								 | 
							
								package serverconfigs
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								import "github.com/TeaOSLab/EdgeNode/internal/configs/serverconfigs/sslconfigs"
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								// TLS Version
							 | 
						||
| 
								 | 
							
								type TLSVersion = string
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								// Cipher Suites
							 | 
						||
| 
								 | 
							
								type TLSCipherSuite = string
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								type HTTPSProtocolConfig struct {
							 | 
						||
| 
								 | 
							
									BaseProtocol `yaml:",inline"`
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
									SSL *sslconfigs.SSLConfig `yaml:"ssl"`
							 | 
						||
| 
								 | 
							
								}
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								func (this *HTTPSProtocolConfig) Init() error {
							 | 
						||
| 
								 | 
							
									err := this.InitBase()
							 | 
						||
| 
								 | 
							
									if err != nil {
							 | 
						||
| 
								 | 
							
										return err
							 | 
						||
| 
								 | 
							
									}
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
									return nil
							 | 
						||
| 
								 | 
							
								}
							 |