This commit is contained in:
zyj
2025-10-20 18:10:04 +08:00
parent 340d87f5ac
commit 2bb0c7dc98
10 changed files with 477 additions and 12 deletions

View File

@@ -7,11 +7,12 @@ import (
)
type AppConfig struct {
Port int `yaml:"port"`
WsUrl string `yaml:"wsUrl"`
StunUrl string `yaml:"stunUrl"`
ApiUrl string `yaml:"apiUrl"`
AppName string `yaml:"appName"`
Port int `yaml:"port"`
WsUrl string `yaml:"wsUrl"`
StunUrl string `yaml:"stunUrl"`
ApiUrl string `yaml:"apiUrl"`
AppName string `yaml:"appName"`
SiteFileDir string `yaml:"siteFileDir"`
}
func LoadConfig() (*AppConfig, error) {