diff --git a/docs/sources/installation/configuration.md b/docs/sources/installation/configuration.md index be7c3a5fc95..6672dcc6479 100644 --- a/docs/sources/installation/configuration.md +++ b/docs/sources/installation/configuration.md @@ -56,7 +56,7 @@ All options in the configuration file can be overridden using environment variab GF__ ``` -Where the section name is the text within the brackets. Everything should be uppercase, `.` should be replaced by `_`. For example, if you have these configuration settings: +Where the section name is the text within the brackets. Everything should be uppercase, `.` and `-` should be replaced by `_`. For example, if you have these configuration settings: ```bash # default section @@ -67,6 +67,9 @@ admin_user = admin [auth.google] client_secret = 0ldS3cretKey + +[plugin.grafana-image-renderer] +rendering_ignore_https_errors = true ``` You can override them on Linux machines with: @@ -75,6 +78,7 @@ You can override them on Linux machines with: export GF_DEFAULT_INSTANCE_NAME=my-instance export GF_SECURITY_ADMIN_USER=owner export GF_AUTH_GOOGLE_CLIENT_SECRET=newS3cretKey +export GF_PLUGIN_GRAFANA_IMAGE_RENDERER_RENDERING_IGNORE_HTTPS_ERRORS=true ``` > For any changes to `conf/grafana.ini` (or corresponding environment variables) to take effect, you must restart Grafana for the changes to take effect. @@ -842,7 +846,7 @@ Set to true if you want to test alpha plugins that are not yet ready for general ### allow_loading_unsigned_plugins -Enter a comma-separated list of plugin identifiers to identify plugins that are allowed to be loaded even if they lack a valid signature. +Enter a comma-separated list of plugin identifiers to identify plugins that are allowed to be loaded even if they lack a valid signature. ## [feature_toggles] ### enable diff --git a/pkg/setting/setting.go b/pkg/setting/setting.go index c23f23b00bf..f4de574cb18 100644 --- a/pkg/setting/setting.go +++ b/pkg/setting/setting.go @@ -373,6 +373,7 @@ func applyEnvVariableOverrides(file *ini.File) error { func envKey(sectionName string, keyName string) string { sN := strings.ToUpper(strings.Replace(sectionName, ".", "_", -1)) + sN = strings.Replace(sN, "-", "_", -1) kN := strings.ToUpper(strings.Replace(keyName, ".", "_", -1)) envKey := fmt.Sprintf("GF_%s_%s", sN, kN) return envKey