MCPcopy Index your code
hub / github.com/go-dev-frame/sponge / TLSAutoEncryptConfig

Struct TLSAutoEncryptConfig

pkg/httpsrv/tls_auto_encrypt.go:59–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57var _ TLSer = (*TLSAutoEncryptConfig)(nil)
58
59type TLSAutoEncryptConfig struct {
60 domain string // The domain to request a certificate for in production mode.
61 email string // Used for Let's Encrypt account registration and important notices.
62 cacheDir string // Directory to store Let's Encrypt certificates.
63 httpAddr string // Listen address for the HTTP redirect service (defaults to :80).
64 enableRedirect bool // Enable HTTP-to-HTTPS redirect service (default: false).
65
66 m *autocert.Manager // Manages certificates automatically.
67 redirectServer *http.Server // The HTTP redirect server.
68}
69
70func NewTLSEAutoEncryptConfig(domain string, email string, opts ...TLSEncryptOption) *TLSAutoEncryptConfig {
71 o := defaultTLSEncryptOptions()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected