I’m trying to do it but it’s not really working. Anyway, you can change environment variables of the grafana server using some options when launching the addon. For example, I’m using caddy proxy and the Infludb and Grafana addon, so, in the option you can write:
{
"env_var": [
{
"name": "GF_AUTH_ANONYMOUS_ENABLED",
"value": "true"
},
{
"name": "GF_SERVER_PROTOCOL",
"value": "https"
},
{
"name": "GF_SERVER_DOMAIN",
"value": "xxxx.duckdns.org"
},
{
"name": "GF_SERVER_CERT_FILE",
"value": "/ssl/caddy/acme/acme-v01.api.letsencrypt.org/sites/xxxx.duckdns.org/xxxx.duckdns.org.crt"
},
{
"name": "GF_SERVER_CERT_KEY",
"value": "/ssl/caddy/acme/acme-v01.api.letsencrypt.org/sites/xxxx.duckdns.org/xxxx.duckdns.org.key"
}
]
}
I’m sure the that the grafana addon will use these variables, but something is missing because it says:
t=2017-11-17T15:49:20+0100 lvl=eror msg=“Fail to start server” logger=server error=“open /ssl/caddy/acme/acme-v01.api.letsencrypt.org/sites/xxxx.duckdns.org/xxxx.duckdns.org.crt: permission denied”