summaryrefslogtreecommitdiff
path: root/modules/caddyhttp/matchers.go
diff options
context:
space:
mode:
authorMatthew Holt <mholt@users.noreply.github.com>2019-12-31 16:57:54 -0700
committerMatthew Holt <mholt@users.noreply.github.com>2019-12-31 16:57:54 -0700
commit788462bd4c9c332b3f892094b1d17147378f5e6a (patch)
tree675a502c57db5ffe0beefe4b39d7e5c111ef7e53 /modules/caddyhttp/matchers.go
parent5a0603ed72cead424a34b3bc5af3a5b1629ac187 (diff)
file-server command: Use safer defaults; http: improve host matcher docs
Diffstat (limited to 'modules/caddyhttp/matchers.go')
-rw-r--r--modules/caddyhttp/matchers.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/modules/caddyhttp/matchers.go b/modules/caddyhttp/matchers.go
index 6c44108..40a767f 100644
--- a/modules/caddyhttp/matchers.go
+++ b/modules/caddyhttp/matchers.go
@@ -34,6 +34,16 @@ import (
type (
// MatchHost matches requests by the Host value (case-insensitive).
+ //
+ // When used in an HTTP route,
+ // [qualifying domain names](/docs/automatic-https#hostname-requirements)
+ // may trigger [automatic HTTPS](/docs/automatic-https), which automatically
+ // provisions and renews certificates for you. Before doing this, you
+ // should ensure that DNS records for these domains are properly configured,
+ // especially A/AAAA pointed at your server.
+ //
+ // Automatic HTTPS can be
+ // [customized or disabled](/docs/json/apps/http/servers/automatic_https/).
MatchHost []string
// MatchPath matches requests by the URI's path (case-insensitive).