Update Grafana links to keycloak and client secret
additional: Change main domain to grafana.clicks.codes
Change-Id: Id40d69668e26ee4f48de6c882fe5cc21b70e6dc2
Reviewed-on: https://git.clicks.codes/c/Clicks/NixFiles/+/181
Tested-by: Skyler Grey <minion@clicks.codes>
Reviewed-by: Skyler Grey <minion@clicks.codes>
diff --git a/modules/common/grafana.nix b/modules/common/grafana.nix
index 05fe726..84b4eb1 100644
--- a/modules/common/grafana.nix
+++ b/modules/common/grafana.nix
@@ -5,7 +5,7 @@
settings = {
server = rec {
- domain = "logs.clicks.codes";
+ domain = "grafana.clicks.codes";
root_url = "https://${domain}";
http_port = 9052;
enable_gzip = true;
@@ -22,11 +22,11 @@
login_attribute_path = "login";
name_attribute_path = "name";
auth_url =
- "https://login.clicks.codes/realms/clicks/protocol/openid-connect/auth";
+ "https://login.clicks.codes/realms/master/protocol/openid-connect/auth";
token_url =
- "https://login.clicks.codes/realms/clicks/protocol/openid-connect/token";
+ "https://login.clicks.codes/realms/master/protocol/openid-connect/token";
api_url =
- "https://login.clicks.codes/realms/clicks/protocol/openid-connect/userinfo";
+ "https://login.clicks.codes/realms/master/protocol/openid-connect/userinfo";
role_attribute_path =
"contains(resource_access.grafana.roles[*], 'server_admin') && 'GrafanaAdmin' || contains(resource_access.grafana.roles[*], 'admin') && 'Admin' || contains(resource_access.grafana.roles[*], 'editor') && 'Editor' || 'Viewer'";
allow_assign_grafana_admin = true;