summaryrefslogtreecommitdiff
path: root/caddyconfig/httpcaddyfile
diff options
context:
space:
mode:
Diffstat (limited to 'caddyconfig/httpcaddyfile')
-rw-r--r--caddyconfig/httpcaddyfile/builtins.go4
-rw-r--r--caddyconfig/httpcaddyfile/tlsapp.go2
2 files changed, 3 insertions, 3 deletions
diff --git a/caddyconfig/httpcaddyfile/builtins.go b/caddyconfig/httpcaddyfile/builtins.go
index 7026dfe..90ce3a4 100644
--- a/caddyconfig/httpcaddyfile/builtins.go
+++ b/caddyconfig/httpcaddyfile/builtins.go
@@ -259,13 +259,13 @@ func parseTLS(h Helper) ([]ConfigValue, error) {
// certificate loaders
if len(fileLoader) > 0 {
configVals = append(configVals, ConfigValue{
- Class: "tls.certificate_loader",
+ Class: "tls.cert_loader",
Value: fileLoader,
})
}
if len(folderLoader) > 0 {
configVals = append(configVals, ConfigValue{
- Class: "tls.certificate_loader",
+ Class: "tls.cert_loader",
Value: folderLoader,
})
}
diff --git a/caddyconfig/httpcaddyfile/tlsapp.go b/caddyconfig/httpcaddyfile/tlsapp.go
index 80f39af..90b4e71 100644
--- a/caddyconfig/httpcaddyfile/tlsapp.go
+++ b/caddyconfig/httpcaddyfile/tlsapp.go
@@ -233,7 +233,7 @@ func (st ServerType) buildTLSApp(
}
// certificate loaders
- if clVals, ok := sblock.pile["tls.certificate_loader"]; ok {
+ if clVals, ok := sblock.pile["tls.cert_loader"]; ok {
for _, clVal := range clVals {
certLoaders = append(certLoaders, clVal.Value.(caddytls.CertificateLoader))
}