summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Holt <mholt@users.noreply.github.com>2020-03-18 15:51:31 -0600
committerMatthew Holt <mholt@users.noreply.github.com>2020-03-18 15:51:31 -0600
commitce45353e619dfa364c7100fe1a4f7638a23b9745 (patch)
tree863ac52f262e4944760f21ed644101081abf9ed2
parent89124aa570004c9b565d6a7841aa847b64dee692 (diff)
Little tweaky tweaks
-rw-r--r--caddyconfig/httpcaddyfile/builtins.go1
-rw-r--r--caddyconfig/httpcaddyfile/httptype.go4
2 files changed, 3 insertions, 2 deletions
diff --git a/caddyconfig/httpcaddyfile/builtins.go b/caddyconfig/httpcaddyfile/builtins.go
index 26abf3c..c354f84 100644
--- a/caddyconfig/httpcaddyfile/builtins.go
+++ b/caddyconfig/httpcaddyfile/builtins.go
@@ -102,6 +102,7 @@ func parseRoot(h Helper) ([]ConfigValue, error) {
// alpn <values...>
// load <paths...>
// ca <acme_ca_endpoint>
+// ca_root <pem_file>
// dns <provider_name>
// on_demand
// }
diff --git a/caddyconfig/httpcaddyfile/httptype.go b/caddyconfig/httpcaddyfile/httptype.go
index 473aee3..50f3252 100644
--- a/caddyconfig/httpcaddyfile/httptype.go
+++ b/caddyconfig/httpcaddyfile/httptype.go
@@ -282,6 +282,8 @@ func (ServerType) evaluateGlobalOptionsBlock(serverBlocks []serverBlock, options
var err error
disp := caddyfile.NewDispenser(segment)
switch dir {
+ case "debug":
+ val = true
case "http_port":
val, err = parseOptHTTPPort(disp)
case "https_port":
@@ -300,8 +302,6 @@ func (ServerType) evaluateGlobalOptionsBlock(serverBlocks []serverBlock, options
val, err = parseOptSingleString(disp)
case "admin":
val, err = parseOptAdmin(disp)
- case "debug":
- options["debug"] = true
case "on_demand_tls":
val, err = parseOptOnDemand(disp)
case "local_certs":