-
-
Notifications
You must be signed in to change notification settings - Fork 110
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
--embed
usage example seems incomplete
#203
Labels
documentation
Improvements or additions to documentation
Comments
Good catch! The virtual filesystem feature of Caddy changed in v2.8.0, and the documentation here was missed. |
Always happy to bring fresh eyes 😃 Updated the example here: #204 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: