Closed rgdev closed 3 years ago
I'll have a look! Maybe I messed up something when refactoring.
A temporary fix is to use CONSUL_HTTP_ADDR
instead
That's true, all environment variables work like before. I'm on a fix but currently in vacation.
Any update on this issue ?
Sorry for the delay. I changed the implementation and also it still needs some polishing it works now with a Caddyfile like this:
{
storage consul {
address "localhost:8500"
token "consul-access-token"
timeout 10
prefix "caddytls"
value_prefix "myprefix"
aes_key "consultls-1234567890-caddytls-32"
tls_enabled "false"
tls_insecure "true"
}
}
It seems that when defining the module's configuration in the Caddyfile it gets ignored. Tested on swarm using caddy 2.1-beta.1 with tlsconsul 1.2.0.
Here's my stack :
Caddyfile :
Log :
It logs a blank address (
TLS storage is using Consul at
) and defaults to127.0.0.1:8500
despite the Caddyfile's consuladdress
pointing toconsul-server:8500
. It works fine using environment variables.