From 81560eaa2c99c45382fb264d014a164809fc0ab7 Mon Sep 17 00:00:00 2001 From: Ske Date: Sat, 21 Jul 2018 01:22:22 +0200 Subject: [PATCH] Add admin access support to Grafana w/ provided user/pass --- docker-compose.yml | 3 +++ grafana/grafana.ini | 3 --- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 153de110..18128027 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -25,6 +25,9 @@ services: - influx ports: - "2938:3000" + environment: + GF_SECURITY_ADMIN_USER: "${GRAFANA_USERNAME}" + GF_SECURITY_ADMIN_PASSWORD: "${GRAFANA_PASSWORD}" restart: always volumes: diff --git a/grafana/grafana.ini b/grafana/grafana.ini index 13b28285..105ee00b 100644 --- a/grafana/grafana.ini +++ b/grafana/grafana.ini @@ -4,9 +4,6 @@ instance_name = pluralkit allow_sign_up = false allow_org_create = false -[auth] -disable_login_form = true - [auth.anonymous] enabled = true org_role = Viewer \ No newline at end of file