{
debug
http_port "80"
https_port "443"
storage "consul" {
address "127.0.0.1:8500"
#prefix "traefik"
prefix "caddy"
}
admin ":2019" {
origins "*" # should be set to something which is only internal and only used to configure caddy via api/json
}
log {
output stdout
format json
}
auto_https disable_redirects
email certs@backbiosis.com
acme_ca "https://acme-staging-v02.api.letsencrypt.org/directory"
}
## http in front for only listening on http and not https
mailer.backbiosis.com {
reverse_proxy 192.168.1.30:8080 192.168.1.31:8080 {
# to //set to upstream
lb_policy random
health_uri /
health_status 300
}
log
}
admin.backbiosis.com {
reverse_proxy 192.168.1.30:80 192.168.1.31:80 {
# to //set to upstream
lb_policy ip_hash
health_uri /
health_status 300
}
log
}
here an extension what i tried to do. since it seems i missed something in the examnple:
./consul kv get caddy/certificates/acme-staging-v02.api.letsencrypt.org-directory/admin.backbiosis.com/admin.backbisosis.com.crt | gunzip -dc > cert.crt
gzip: stdin: not in gzip format
And my question is. How do can i get the certificates out of consul.
like stated in the example above.