V2bX/conf/cert.go
2023-09-03 02:59:54 +08:00

19 lines
626 B
Go

package conf
type CertConfig struct {
CertMode string `json:"CertMode"` // none, file, http, dns
RejectUnknownSni bool `json:"RejectUnknownSni"`
CertDomain string `json:"CertDomain"`
CertFile string `json:"CertFile"`
KeyFile string `json:"KeyFile"`
Provider string `json:"Provider"` // alidns, cloudflare, gandi, godaddy....
Email string `json:"Email"`
DNSEnv map[string]string `json:"DNSEnv"`
}
func NewCertConfig() *CertConfig {
return &CertConfig{
CertMode: "none",
}
}