grafana: google login

auto-flake-update
Yorick van Pelt 2021-01-03 18:59:55 +01:00
parent c2fbcb0896
commit ad7f39a84e
Signed by: yorick
GPG Key ID: A36E70F9DC014A15
3 changed files with 11 additions and 0 deletions

1
.gitattributes vendored
View File

@ -1,3 +1,4 @@
secrets.nix filter=git-crypt diff=git-crypt
*.key filter=git-crypt diff=git-crypt
deploy_key filter=git-crypt diff=git-crypt
keys/** filter=git-crypt diff=git-crypt

BIN
keys/grafana.env Normal file

Binary file not shown.

View File

@ -7,6 +7,8 @@
../services/torrent-wg.nix
];
deployment.keyys = [ ../keys/grafana.env ];
system.stateVersion = "15.09";
networking.hostId = "0702dbe9";
@ -71,5 +73,13 @@
enable = true;
addr = "0.0.0.0";
domain = "grafana.yori.cc";
rootUrl = "https://grafana.yori.cc/";
extraOptions = {
AUTH_BASIC_ENABLED = "false";
AUTH_DISABLE_LOGIN_FORM = "true";
AUTH_GOOGLE_ENABLED = "true";
AUTH_GOOGLE_ALLOW_SIGN_UP = "false";
};
};
systemd.services.grafana.serviceConfig.EnvironmentFile = "/root/keys/grafana.env";
}