Closed gedw99 closed 6 days ago
I'm happy to take a PR to upgrade the version of caddy that we are using.
I looked into this somewhat, it looks like you have to register your plugin with them somehow and I couldn't find docs about how to do that. If you have pointers to docs, I'm happy to pursue this option.
I looked into this somewhat, it looks like you have to register your plugin with them somehow and I couldn't find docs about how to do that. If you have pointers to docs, I'm happy to pursue this option.
your 100% right..
I am guessing they do a git pull on their server, then xcaddy it on the sever and return it back up to your laptop.
I was advised by them to not do it actually. So going to go with the flow on this one.
Just to get work done I generally just import and compile, so I have easier time with version management:
package main
import (
caddycmd "github.com/caddyserver/caddy/v2/cmd"
// plug in Caddy modules here
_ "github.com/caddyserver/caddy/v2/modules/standard"
_ "github.com/darkweak/souin"
_ "github.com/darkweak/souin/plugins/caddy"
_ "github.com/darkweak/storages/nats/caddy"
)
func main() {
caddycmd.Main()
}
Reckon we should close this ?
easier way to add modules in https://github.com/caddyserver/caddy/releases/tag/v2.8.4 than caddy.
It's experimental but I found it works well on many caddy modules so far. Its been very robust.