Docs: Add feature flag example to override configuration with environment variables (#58613)

This commit is contained in:
Alexa V 2022-11-10 15:39:27 -06:00 committed by GitHub
parent fd6edbf8c5
commit 5fac98bcfd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -71,6 +71,9 @@ client_secret = 0ldS3cretKey
[plugin.grafana-image-renderer]
rendering_ignore_https_errors = true
[feature_toggles]
enable = newNavigation
```
You can override them on Linux machines with:
@ -80,6 +83,7 @@ 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
export GF_FEATURE_TOGGLES_ENABLE=newNavigation
```
## Variable expansion