summaryrefslogtreecommitdiff
path: root/caddyconfig/httpcaddyfile
diff options
context:
space:
mode:
authorMatthew Holt <mholt@users.noreply.github.com>2020-05-29 11:49:21 -0600
committerMatthew Holt <mholt@users.noreply.github.com>2020-05-29 11:49:25 -0600
commit6c051cd27d3b0c61b103a58dce9f779481fa993b (patch)
tree3095001af8ae6c4dce13570a2959f1968cca0563 /caddyconfig/httpcaddyfile
parent9415feca7cf0fe14b9d881c7318be2da20b2985f (diff)
caddyconfig: Minor internal and godoc tweaks
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))
}