-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
caddy add package support. #19
Comments
hey @infogulch The above is a botnet I think. Can you delete it ? |
caddyserver/caddy#6548 would be useful ? Its not idempotent, which kind of sucks. caddy add-package github.com/abiosoft/caddy-exec
Error: package is already added |
xtemplate works btw :) appd github.com/greenpau/caddy-appd
exec github.com/abiosoft/caddy-exec
git github.com/greenpau/caddy-git
http.handlers.exec github.com/abiosoft/caddy-exec
http.handlers.git github.com/greenpau/caddy-git
http.handlers.xtemplate github.com/infogulch/xtemplate-caddy I think your xtemplate can also include the SQLite db features and needs CGO if we want SQL included ? |
But you still should, if possible. |
Recommending xcaddy seems to be the way. I'll update the readme to reflect this soon. Thanks all for your input. :) |
Got it :) did not realise add package was dependent on their server |
I looked at moving the caddy-xtemplate package into a subdirectory/package of the Go module in this repo, but it looks like caddy packages must be the root Go package in a Go module, so this won't work. Is this correct @francislavoie ? |
No, they can be in subdirectories, you just need to make their package name (in your go.mod) match. For example https://github.com/RussellLuo/caddy-ext has multiple plugins organized that way (I don't necessarily agree though, there's advantages to having it one per repo) |
in the latest tagged caddy you dont need to use xacddy.
Instead you can use the package cmd calls like below.
works for me :) Might be a good one for xtemplate ?
It will take ANY caddy and recompile it to have the package inside.
The text was updated successfully, but these errors were encountered: