Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AsCaddyConfig ¶
Types ¶
type Config ¶
type Config struct { Admin caddy.AdminConfig `json:"admin,omitempty"` Storage Storage `json:"storage"` Apps ConfigApps `json:"apps"` Logging caddy.Logging `json:"logging"` }
func Read ¶
func Read() Config
Read returns a copy of the current caddy config. Any modifications will be lost and never applied.
func (Config) GetHTTPApp ¶
func (Config) GetRedirApp ¶
func (Config) GetTLSCertificates ¶
func (c Config) GetTLSCertificates() (t TLSCertificates)
func (Config) SetTLSCertificates ¶
func (c Config) SetTLSCertificates(t TLSCertificates)
type ConfigApps ¶
type Storage ¶
type Storage struct {
System string `json:"module"`
}
Storage represents the certmagic storage configuration.
type TLSCertificatePair ¶
type TLSCertificatePair struct { Certificate string `json:"certificate"` Key string `json:"key"` Format string `json:"format"` Tags []string `json:"tags"` }
Covers apps.tls.certificates.load_storage.pairs
type TLSCertificates ¶
type TLSCertificates struct {
Pairs []TLSCertificatePair `json:"pairs"`
}
Covers apps.tls.certificates.load_storage
Click to show internal directories.
Click to hide internal directories.