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 types
|
|
|
|
type Config struct {
|
|
Providers ProxyProviders `json:"providers" yaml:",flow"`
|
|
AutoCert AutoCertConfig `json:"autocert" yaml:",flow"`
|
|
ExplicitOnly bool `json:"explicit_only" yaml:"explicit_only"`
|
|
MatchDomains []string `json:"match_domains" yaml:"match_domains"`
|
|
TimeoutShutdown int `json:"timeout_shutdown" yaml:"timeout_shutdown"`
|
|
RedirectToHTTPS bool `json:"redirect_to_https" yaml:"redirect_to_https"`
|
|
}
|
|
|
|
func DefaultConfig() *Config {
|
|
return &Config{
|
|
Providers: ProxyProviders{},
|
|
TimeoutShutdown: 3,
|
|
RedirectToHTTPS: false,
|
|
}
|
|
}
|