caddy-tlsredis icon indicating copy to clipboard operation
caddy-tlsredis copied to clipboard

Move hardcoded certificated to redis

Open renodesper opened this issue 1 year ago • 2 comments

Currently, I put the certificate on the server like this:

*.example.com {
        ...
        tls /etc/caddy/ssl/example.crt /etc/caddy/ssl/example.key
}

If I want to put the certificate on the redis using caddy-tlsredis, what should I put on the config? Can you give me an example? Thank you.

renodesper avatar Jan 09 '24 07:01 renodesper

It's not possible via Caddyfile but you may use the load_storage loader via JSON config https://caddyserver.com/docs/json/apps/tls/certificates/load_storage/

francislavoie avatar Jan 09 '24 08:01 francislavoie

Can you give me an example of using the load_storage? I still don't get how can I achieve it using that method.

renodesper avatar Jan 09 '24 08:01 renodesper