--embed
usage example seems incomplete
#203
Labels
documentation
Improvements or additions to documentation
--embed
usage example seems incomplete
#203
In the documentation for
--embed
, the example Caddyfile usesfs embedded
directives as though theembedded
filesystem is pre-declared.In my own testing, I found that
xcaddy
had rather created a submodule ofcaddy.fs
namedembedded
, which meant I still had to declare a filesystem in the global options block to be able to serve files from the embedded FS, which in the example would look like this:Without this instantiation in the global options block, the debug output from the server would warn about attempts to use an undeclared filesystem.
I'm pretty new to Caddy and
xcaddy
, so I'm curious if there's something I've missed about how this sample usage is supposed to work, or if this is a case where the example should be updated for completeness.The text was updated successfully, but these errors were encountered: