hosts/plover: fix Grafana provider strings in settings

This commit is contained in:
Gabriel Arazas 2023-10-14 11:14:44 +08:00
parent 107241f553
commit 1ad6e7e8c5
No known key found for this signature in database
GPG Key ID: ADE0C41DAB221FCC

View File

@ -28,7 +28,7 @@ in
"auth.generic_oauth" = { "auth.generic_oauth" = {
api_url = authSubpath "oauth2/authorise"; api_url = authSubpath "oauth2/authorise";
client_id = "grafana"; client_id = "grafana";
client_secret = "$_file{${config.sops.secrets."vouch-proxy/client/secret".path}"; client_secret = "$__file{${config.sops.secrets."vouch-proxy/client/secret".path}";
enabled = true; enabled = true;
name = "Kanidm"; name = "Kanidm";
oauth_url = authSubpath "ui/oauth2"; oauth_url = authSubpath "ui/oauth2";
@ -38,7 +38,7 @@ in
database = rec { database = rec {
host = "127.0.0.1:${builtins.toString config.services.postgresql.port}"; host = "127.0.0.1:${builtins.toString config.services.postgresql.port}";
password = "$_file{${config.sops.secrets."grafana/database/password".path}}"; password = "$__file{${config.sops.secrets."grafana/database/password".path}}";
type = "postgres"; type = "postgres";
name = "grafana"; name = "grafana";
user = name; user = name;
@ -51,7 +51,7 @@ in
security = { security = {
admin_email = config.security.acme.defaults.email; admin_email = config.security.acme.defaults.email;
admin_password = "$_file{${config.sops.secrets."grafana/users/admin/password".path}}"; admin_password = "$__file{${config.sops.secrets."grafana/users/admin/password".path}}";
cookie_secure = true; cookie_secure = true;
csrf_trusted_origins = [ csrf_trusted_origins = [
vouchDomain vouchDomain