What's the recommended way to set up Grafana behind Caddy?

Hi, previous posts was not working for me, here is what’s working:

caddyFile

  proxy /metrics http://localhost:3000/ {
         without /metrics
         transparent
         websocket
  }

defaults.ini from Grafana

[server]
domain = mydomain.com
root_url = %(protocol)s://%(domain)s:/metrics

Cheers!

2 Likes