feat[Https]: added https support (#113)

This commit is contained in:
zhangwenjian
2020-06-11 23:56:05 +08:00
parent 5d69b32119
commit 0177fb17b7
9 changed files with 89 additions and 5 deletions
+17
View File
@@ -0,0 +1,17 @@
package config
import "github.com/spf13/viper"
type Ssl struct {
KeyStr string
Pem string
}
func InitSsl(cfg *viper.Viper) *Ssl {
return &Ssl{
KeyStr: cfg.GetString("key"),
Pem: cfg.GetString("pem"),
}
}
var SslConfig = new(Ssl)