mirror of
https://github.com/wyx2685/V2bX.git
synced 2025-01-22 09:58:14 -05:00
19 lines
626 B
Go
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",
|
|
}
|
|
}
|