mirror of
				https://github.com/TeaOSLab/EdgeCommon.git
				synced 2025-11-04 13:10:24 +08:00 
			
		
		
		
	节点配置增加产品信息
This commit is contained in:
		@@ -42,6 +42,7 @@ type NodeConfig struct {
 | 
			
		||||
 | 
			
		||||
	// 全局配置
 | 
			
		||||
	GlobalConfig  *serverconfigs.GlobalConfig `yaml:"globalConfig" json:"globalConfig"` // 全局配置
 | 
			
		||||
	ProductConfig *ProductConfig              `yaml:"productConfig" json:"productConfig"`
 | 
			
		||||
 | 
			
		||||
	// 集群统一配置
 | 
			
		||||
	HTTPFirewallPolicies []*firewallconfigs.HTTPFirewallPolicy   `yaml:"httpFirewallPolicies" json:"httpFirewallPolicies"`
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										11
									
								
								pkg/nodeconfigs/product_config.go
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								pkg/nodeconfigs/product_config.go
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,11 @@
 | 
			
		||||
// Copyright 2022 Liuxiangchao iwind.liu@gmail.com. All rights reserved.
 | 
			
		||||
 | 
			
		||||
package nodeconfigs
 | 
			
		||||
 | 
			
		||||
const DefaultProductName = "GoEdge"
 | 
			
		||||
 | 
			
		||||
// ProductConfig 产品相关设置
 | 
			
		||||
type ProductConfig struct {
 | 
			
		||||
	Name    string `yaml:"name" json:"name"`
 | 
			
		||||
	Version string `yaml:"version" json:"version"`
 | 
			
		||||
}
 | 
			
		||||
@@ -5,7 +5,7 @@ const (
 | 
			
		||||
	DefaultTCPPortRangeMax = 40000
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
// 服务相关的全局设置
 | 
			
		||||
// GlobalConfig 服务相关的全局设置
 | 
			
		||||
type GlobalConfig struct {
 | 
			
		||||
	// HTTP & HTTPS相关配置
 | 
			
		||||
	HTTPAll struct {
 | 
			
		||||
 
 | 
			
		||||
@@ -8,6 +8,7 @@ const (
 | 
			
		||||
	SettingCodeClusterHealthCheck    SettingCode = "clusterHealthCheck"  // 集群健康检查
 | 
			
		||||
	SettingCodeIPListVersion         SettingCode = "ipListVersion"       // IP名单的版本号
 | 
			
		||||
	SettingCodeAdminSecurityConfig   SettingCode = "adminSecurityConfig" // 管理员安全设置
 | 
			
		||||
	SettingCodeAdminUIConfig         SettingCode = "adminUIConfig"       // 管理员界面设置
 | 
			
		||||
	SettingCodeDatabaseConfigSetting SettingCode = "databaseConfig"      // 数据库相关配置
 | 
			
		||||
	SettingCodeAccessLogQueue        SettingCode = "accessLogQueue"      // 访问日志队列
 | 
			
		||||
	SettingCodeCheckUpdates          SettingCode = "checkUpdates"        // 检查自动更新配置
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user