43 lines
1.0 KiB
INI
43 lines
1.0 KiB
INI
[server]
|
|
http_addr = 127.0.0.1
|
|
http_port = 3000
|
|
root_url = [[ .monitoring.grafana.public_url ]]
|
|
serve_from_sub_path = [[ if eq (urlParse .monitoring.grafana.public_url).Path "" ]]false[[ else ]]true[[ end ]]
|
|
|
|
[database]
|
|
type = postgres
|
|
name = [[ .postgres.database ]]
|
|
[[- if ne .postgres.pooler.engine "none" ]]
|
|
host = 127.0.0.1:[[ .postgres.pooler.port ]]
|
|
user = [[ .instance ]]
|
|
password = {{ env "NOMAD_ALLOC_ID" }}
|
|
ssl_mode = disable
|
|
[[- else ]]
|
|
host = [[ .postgres.host ]]:[[ .postgres.port ]]
|
|
user = [[ .postgres.user ]]
|
|
password = [[ .postgres.password ]]
|
|
[[ end ]]
|
|
|
|
[remote_cache]
|
|
type = memcached
|
|
connstr = 127.0.0.1:11211
|
|
|
|
[analytics]
|
|
reporting_enabled = false
|
|
check_for_updates = false
|
|
check_for_plugin_updates = false
|
|
|
|
[security]
|
|
cookie_secure = true
|
|
cookie_samesite = strict
|
|
x_xss_protection = true
|
|
secret_key = {{ with secret "[[ .vault.root ]]kv/service/[[ .instance ]]/grafana" }}{{ .Data.data.secret_key }}{{ end }}
|
|
|
|
[dataproxy]
|
|
timeout = 120
|
|
|
|
[feature_toggles]
|
|
[[- range $feature, $value := .feature_toggles ]]
|
|
[[ $feature ]] = [[ $value ]]
|
|
[[- end ]]
|