-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Open
Description
Description
import is not recognized in named routes. With the following configuration:
# Caddyfile
(mysnippet) {
encode zstd gzip
}
&(myroute) {
import mysnippet
respond "Hello, Caddy!"
}
example.com {
invoke myroute
}It results in:
$ caddy adapt -c Caddyfile
Error: unrecognized directive: import - are you sure your Caddyfile structure (nesting and braces) is correct?, at config/caddy/Caddyfile:8Environment
- Caddy version: 2.8.4
- Platform: Linux (Fedora Silverblue 40)
I also reproduced it on the latest commit (f8861ca).
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels