feat: add listen_host (#550)

This commit is contained in:
Moraxyc
2024-12-05 17:01:21 +08:00
committed by GitHub
parent be51c5a1e6
commit 3fb49693d9
2 changed files with 3 additions and 2 deletions

View File

@@ -30,6 +30,7 @@ type Config struct {
JWTSecretKey string `mapstructure:"jwt_secret_key" json:"jwt_secret_key,omitempty"`
AgentSecretKey string `mapstructure:"agent_secret_key" json:"agent_secret_key,omitempty"`
ListenPort uint `mapstructure:"listen_port" json:"listen_port,omitempty"`
ListenHost string `mapstructure:"listen_host" json:"listen_host,omitempty"`
InstallHost string `mapstructure:"install_host" json:"install_host,omitempty"`
TLS bool `mapstructure:"tls" json:"tls,omitempty"`
Location string `mapstructure:"location" json:"location,omitempty"` // 时区,默认为 Asia/Shanghai