add more oauth related options

This commit is contained in:
nd 2020-12-12 23:57:40 +01:00
parent b279d0a9e2
commit d88b0dc089
No known key found for this signature in database
GPG key ID: 21B5CD4DEE3670E9
2 changed files with 7 additions and 3 deletions

View file

@ -4,6 +4,9 @@ grafana:
secret_key: "{{ lookup('password', '/dev/null') }}"
instance_name: "${HOSTNAME}"
root_url: "https://localhost"
signout_redirect_url: ""
disable_login_form: "false"
oauth_auto_login: "false"
oauth2:
enabled: "false"
name: "OAuth"
@ -13,6 +16,7 @@ grafana:
token_url: ""
api_url: ""
scopes: ""
role_attribute_path: "role"
plugins:
"grafana-piechart-panel": {}
datasources: {}

View file

@ -267,17 +267,17 @@ disable_gravatar = true
;token_rotation_interval_minutes = 10
# Set to true to disable (hide) the login form, useful if you use OAuth, defaults to false
;disable_login_form = false
disable_login_form = {{ grafana.config.disable_login_form }}
# Set to true to disable the signout link in the side menu. useful if you use auth.proxy, defaults to false
;disable_signout_menu = false
# URL to redirect the user to after sign out
;signout_redirect_url =
signout_redirect_url = {{ grafana.config.signout_redirect_url }}
# Set to true to attempt login with OAuth automatically, skipping the login screen.
# This setting is ignored if multiple OAuth providers are configured.
;oauth_auto_login = false
oauth_auto_login = {{ grafana.config.oauth_auto_login }}
#################################### Anonymous Auth ######################
[auth.anonymous]