2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 14:57:16 +08:00
Files
panel/pkg/types/config.go

29 lines
667 B
Go

package types
// PanelConfig 面板配置结构体
type PanelConfig struct {
App PanelAppConfig `yaml:"app"`
HTTP PanelHTTPConfig `yaml:"http"`
Database PanelDatabaseConfig `yaml:"database"`
}
type PanelAppConfig struct {
Debug bool `yaml:"debug"`
Key string `yaml:"key"`
Locale string `yaml:"locale"`
Timezone string `yaml:"timezone"`
Version string `yaml:"version"`
Root string `yaml:"root"`
}
type PanelHTTPConfig struct {
Debug bool `yaml:"debug"`
Port int `yaml:"port"`
Entrance string `yaml:"entrance"`
TLS bool `yaml:"tls"`
}
type PanelDatabaseConfig struct {
Debug bool `yaml:"debug"`
}