mirror of
https://github.com/grafana/grafana.git
synced 2025-02-16 18:34:52 -06:00
Merge pull request #2190 from zsxking/master
Update documents about environment variable override rules.
This commit is contained in:
commit
388fba4569
@ -28,14 +28,19 @@ using environment variables using the syntax:
|
|||||||
GF_<SectionName>_<KeyName>
|
GF_<SectionName>_<KeyName>
|
||||||
|
|
||||||
Where the section name is the text within the brackets. Everything
|
Where the section name is the text within the brackets. Everything
|
||||||
should be upper case. For example, given this configuration setting:
|
should be upper case, `.` should be replaced by `_`. For example, given these configuration settings:
|
||||||
|
|
||||||
[security]
|
[security]
|
||||||
admin_user = admin
|
admin_user = admin
|
||||||
|
|
||||||
|
[auth.google]
|
||||||
|
client_secret = 0ldS3cretKey
|
||||||
|
|
||||||
|
|
||||||
Then you can override that using:
|
Then you can override that using:
|
||||||
|
|
||||||
export GF_SECURITY_ADMIN_USER=true
|
export GF_SECURITY_ADMIN_USER=true
|
||||||
|
export GF_AUTH_GOOGLE_CLIENT_SECRET=newS3cretKey
|
||||||
|
|
||||||
<hr>
|
<hr>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user