Caddy v2 environment variables


I’ve been reading over the v2 docs relating to the JSON configuration at

I can’t find anything relating to environment variables support, as available in v1.

Does the JSON configuration support environment variables?


Great question – yes it does! You can use them as described here:

FYI this is currently in motion, on its way to improvements, so it may not be fully fleshed out yet. e.g.

Ah, awesome! Thanks for that.