14 lines
303 B
Caddyfile
14 lines
303 B
Caddyfile
# Optional Caddy snippet for exposing Grafana through a protected hostname.
|
|
# Generate a password hash with:
|
|
# caddy hash-password --plaintext '<password>'
|
|
|
|
{$OBSERVABILITY_HOST} {
|
|
encode gzip zstd
|
|
|
|
basicauth {
|
|
{$GRAFANA_BASIC_AUTH_USER} {$GRAFANA_BASIC_AUTH_HASH}
|
|
}
|
|
|
|
reverse_proxy grafana:3000
|
|
}
|