feat : update config
This commit is contained in:
1 parent
2b92b100e3
commit
7e12e55b56
5 files changed
+36
-38
No files matched your search
@@ -5,12 +5,16 @@ import "github.com/spf13/viper"
|
||||
type Ssl struct {
|
||||
KeyStr string
|
||||
Pem string
|
||||
Enable bool
|
||||
Domain string
|
||||
}
|
||||
|
||||
func InitSsl(cfg *viper.Viper) *Ssl {
|
||||
return &Ssl{
|
||||
KeyStr: cfg.GetString("key"),
|
||||
Pem: cfg.GetString("pem"),
|
||||
Enable: cfg.GetBool("enable"),
|
||||
Domain: cfg.GetString("domain"),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user