From 434a2377649acd81ca6d1037f82effe6430f574c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Wed, 11 Mar 2015 19:32:06 +0100 Subject: [PATCH] Added ENV variable info to the configuration docs --- docs/sources/installation/configuration.md | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/docs/sources/installation/configuration.md b/docs/sources/installation/configuration.md index 394c4ee1b1e..048301a7714 100644 --- a/docs/sources/installation/configuration.md +++ b/docs/sources/installation/configuration.md @@ -19,6 +19,22 @@ or specified using `ENV` variables. > at `/etc/grafana/grafana.ini`. This path is specified in the grafana init.d script using `--config` file > parameter. +## Using ENV variables +All options in the config file (listed below) can be overriden using ENV variables using the syntax: + + GF__ + +Where the section name is the text within the brackets. Everything should be upper case. + +Example, given this config setting: + + [security] + admin_user = admin + +Then you can override that using: + + export GF_SECURITY_ADMIN_USER=true +
## [server] @@ -158,7 +174,6 @@ Client ID and a Client Secret. Specify these in the grafana config file. Example Restart the grafana backend. You should now see a google login button on the login page. You can now login or signup with your google accounts. -
## [session]