Prometheus metrics on Caddy —
Continuing with my Caddy experimentation, I wanted to get some metrics out of it. Caddy provides metrics out of the box on its admin API:
https://localhost:2019/metrics This works well if you have prometheus running on the same server though in my case, prometheus is running on a different VM and on a private network.
Caddy will enforce https on every vhost by default. For public domains, it’ll try to get a Let’s Encrypt certificate and for IP addresses and localhost, it’ll use an internal CA to sign certificates that it’ll serve for these.
Jan 12, 2021
Caddy as a reverse proxy to Dendrite —
I use Dendrite as I experiment with Matrix. It consumes a lot less resources than Synapse though it is in beta and doesn’t support the specification in full. The trade-off suits me.
I wanted to try Caddy for a long time and I just did, switching this blog and a few other services to it. The last one to be migrated was Dendrite. The repository gives an example configuration for nginx but not for Caddy.