mirror of
https://github.com/yusing/godoxy.git
synced 2026-04-01 22:53:05 +02:00
preparing for v0.5
This commit is contained in:
16
src/models/config.go
Normal file
16
src/models/config.go
Normal file
@@ -0,0 +1,16 @@
|
||||
package model
|
||||
|
||||
type Config struct {
|
||||
Providers ProxyProviders `yaml:",flow" json:"providers"`
|
||||
AutoCert AutoCertConfig `yaml:",flow" json:"autocert"`
|
||||
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: true,
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user