diff --git a/src/docs/markdown/caddyfile/directives.md b/src/docs/markdown/caddyfile/directives.md index 429934c..9ac022a 100644 --- a/src/docs/markdown/caddyfile/directives.md +++ b/src/docs/markdown/caddyfile/directives.md @@ -15,6 +15,7 @@ Directive | Description **[handle](/docs/caddyfile/directives/handle)** | A mutually-exclusive group of directives **[handle_errors](/docs/caddyfile/directives/handle_errors)** | Defines routes for handling errors **[header](/docs/caddyfile/directives/header)** | Sets or removes response headers +**[import](/docs/caddyfile/directives/import)** | Include snippets or files **[log](/docs/caddyfile/directives/log)** | Enables access/request logging **[php_fastcgi](/docs/caddyfile/directives/php_fastcgi)** | Serve PHP sites over FastCGI **[redir](/docs/caddyfile/directives/redir)** | Issues an HTTP redirect to the client diff --git a/src/docs/markdown/caddyfile/directives/import.md b/src/docs/markdown/caddyfile/directives/import.md new file mode 100644 index 0000000..6a42f97 --- /dev/null +++ b/src/docs/markdown/caddyfile/directives/import.md @@ -0,0 +1,26 @@ +--- +title: import (Caddyfile directive) +--- + +# import + +Includes a [snippet](/docs/caddyfile/concepts#snippets) or file, replacing this directive with the contents of the snippet or file. + +This directive is a special case: it is evaluated before the structure is parsed, and it can appear anywhere in the Caddyfile. + +## Syntax + +``` +import +``` + +- **<pattern>** is the filename, glob pattern, or name of [snippet](/docs/caddyfile/concepts#snippets) to include. Its contents will replace this line as if that file's contents appeared here to begin with. It is an error if a specific file cannot be found, but an empty glob pattern is not an error. + + +## Examples + +Import all files in an adjacent sites-enabled folder: + +``` +import sites-enabled/* +``` diff --git a/src/docs/markdown/download.md b/src/docs/markdown/download.md index 6fbd4a9..19ea054 100644 --- a/src/docs/markdown/download.md +++ b/src/docs/markdown/download.md @@ -21,6 +21,9 @@ Using `wget`:
wget "https://github.com/caddyserver/caddy/releases/latest/download/ASSET"
+Replace `ASSET` with the filename for your platform. + + ## Docker
docker pull caddy
@@ -59,6 +62,7 @@ RHEL/CentOS 7: [**Deploy a Caddy droplet on DigitalOcean**](https://marketplace.digitalocean.com/apps/caddy) + ## macOS
brew install caddy