Closed mswart closed 5 years ago
I’ll have a look into this. Reason is probably that these parts of Caddy still change until the new version is released.
@mswart I finally got a working version with Go 1.12 by cloning my plugin into Caddy vendor folder at the right place and enable the plugin in ./caddy/caddymain/run.go
Have a look at the Dockerfile that now does exactly this. (You can use the Docker image pteich/caddy-tlsconsul:latest
)
Cloning the plugin into the vendor
directory of caddy did the trick. Thx.
After the current transition of Caddy to Go modules this hack is no longer necessary.
I was excited to find this plugin and tried it out. As this plugin is currently not available via the official downloader I registered it in
caddy/caddymain/main.go
and compiled caddy. Once I started caddy with activated consul storage plugin it crashes during startup:The null pointer appears to be the result of calling
RegisterClusterPlugin
with an uninitialized variable and not a function. Experiments to useNewConsulStorage
or some variation of such a function were unsuccessful (go type/interface mismatch during compilation).How do I compile and use this plugin correctly? Thx.