Skip to content

Commit

Permalink
feat: disable login for grafana (#122)
Browse files Browse the repository at this point in the history
feat: disable login for grafana
  • Loading branch information
barnabasbusa authored Aug 11, 2023
1 parent b0903bd commit 4d7df4b
Show file tree
Hide file tree
Showing 2 changed files with 598 additions and 33 deletions.
8 changes: 7 additions & 1 deletion src/grafana/grafana_launcher.star
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,13 @@ def get_config(grafana_config_artifacts_name, grafana_dashboards_artifacts_name)
return ServiceConfig(
image = IMAGE_NAME,
ports = USED_PORTS,
env_vars = {CONFIG_DIRPATH_ENV_VAR: GRAFANA_CONFIG_DIRPATH_ON_SERVICE},
env_vars = {
CONFIG_DIRPATH_ENV_VAR: GRAFANA_CONFIG_DIRPATH_ON_SERVICE,
"GF_AUTH_ANONYMOUS_ENABLED": "true",
"GF_AUTH_ANONYMOUS_ORG_ROLE": "Admin",
"GF_AUTH_ANONYMOUS_ORG_NAME": "Main Org.",
"GF_DASHBOARDS_DEFAULT_HOME_DASHBOARD_PATH": "/dashboards/default.json",
},
files = {
GRAFANA_CONFIG_DIRPATH_ON_SERVICE: grafana_config_artifacts_name,
GRAFANA_DASHBOARDS_DIRPATH_ON_SERVICE: grafana_dashboards_artifacts_name
Expand Down
Loading

0 comments on commit 4d7df4b

Please sign in to comment.