2023-07-29 06:47:47 -04:00
|
|
|
package conf
|
|
|
|
|
|
|
|
type CertConfig struct {
|
2023-08-20 03:13:52 -04:00
|
|
|
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"`
|
2023-07-29 06:47:47 -04:00
|
|
|
}
|
2023-09-02 14:59:54 -04:00
|
|
|
|
|
|
|
func NewCertConfig() *CertConfig {
|
|
|
|
return &CertConfig{
|
|
|
|
CertMode: "none",
|
|
|
|
}
|
|
|
|
}
|