Caddy v2 environment variables

Hi,

I’ve been reading over the v2 docs relating to the JSON configuration at https://caddyserver.com/docs/json/.

I can’t find anything relating to environment variables support, as available in v1. https://caddyserver.com/v1/docs/caddyfile#env.

Does the JSON configuration support environment variables?

Thanks,
Scott.

Great question – yes it does! You can use them as described here: https://caddyserver.com/docs/conventions#placeholders

FYI this is currently in motion, on its way to improvements, so it may not be fully fleshed out yet. e.g. https://github.com/caddyserver/caddy/pull/2963

Ah, awesome! Thanks for that.