mirror of
https://github.com/yusing/godoxy.git
synced 2025-05-20 20:52:33 +02:00
18 lines
622 B
Go
18 lines
622 B
Go
package model
|
|
|
|
type Config struct {
|
|
Providers ProxyProviders `yaml:",flow" json:"providers"`
|
|
AutoCert AutoCertConfig `yaml:",flow" json:"autocert"`
|
|
ExplicitOnly bool `yaml:"explicit_only" json:"explicit_only"`
|
|
MatchDomains []string `yaml:"match_domains" json:"match_domains"`
|
|
TimeoutShutdown int `yaml:"timeout_shutdown" json:"timeout_shutdown"`
|
|
RedirectToHTTPS bool `yaml:"redirect_to_https" json:"redirect_to_https"`
|
|
}
|
|
|
|
func DefaultConfig() *Config {
|
|
return &Config{
|
|
Providers: ProxyProviders{},
|
|
TimeoutShutdown: 3,
|
|
RedirectToHTTPS: false,
|
|
}
|
|
}
|