Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
App AppConfig `yaml:"app"`
HTTP HTTPConfig `yaml:"http"`
Database DatabaseConfig `yaml:"database"`
Session SessionConfig `yaml:"session"`
}
Config 面板配置结构体
type DatabaseConfig ¶
type DatabaseConfig struct {
Debug bool `yaml:"debug"`
}
type HTTPConfig ¶
type HTTPConfig struct {
Debug bool `yaml:"debug"`
Port uint `yaml:"port"`
Entrance string `yaml:"entrance"`
EntranceError string `yaml:"entrance_error"`
TLS string `yaml:"tls"` // off, acme, self-signed, custom
LoginCaptcha bool `yaml:"login_captcha"`
IPHeader string `yaml:"ip_header"`
BindDomain []string `yaml:"bind_domain"`
BindIP []string `yaml:"bind_ip"`
BindUA []string `yaml:"bind_ua"`
}
func (*HTTPConfig) IsHTTPS ¶ added in v3.2.0
func (c *HTTPConfig) IsHTTPS() bool
IsHTTPS 判断是否启用 HTTPS
type SessionConfig ¶
type SessionConfig struct {
Lifetime uint `yaml:"lifetime"`
}
Click to show internal directories.
Click to hide internal directories.