From ad1e1ff6c8ae7ce86ed69a4ee5e668dc36fcd7f2 Mon Sep 17 00:00:00 2001 From: Giulio De Pasquale Date: Sat, 9 Dec 2023 20:07:42 +0100 Subject: [PATCH] matrix: removed OIDC auth --- hosts/architect/matrix.nix | 24 ++++-------------------- 1 file changed, 4 insertions(+), 20 deletions(-) diff --git a/hosts/architect/matrix.nix b/hosts/architect/matrix.nix index fe6ea6c..c5bcdfc 100644 --- a/hosts/architect/matrix.nix +++ b/hosts/architect/matrix.nix @@ -24,22 +24,6 @@ in auto_join_rooms = [ "#general:${domain}" "#music:${domain}" "#movies:${domain}" ]; - oidc_providers = [{ - idp_id = "keycloak"; - idp_name = "Architect SSO"; - issuer = "https://auth.giugl.io/realms/master"; - client_id = "synapse"; - client_secret = "hj7dkbAI75jIeggr1cW0JTRzAdvJUtq6"; - scopes = [ "openid" "profile" ]; - user_profile_method = "userinfo_endpoint"; - user_mapping_provider.config = { - localpart_template = "{{ user.preferred_username }}"; - display_name_template = "{{ user.name }}"; - confirm_localpart = true; - }; - backchannel_logout_enabled = true; - }]; - listeners = [{ port = 8008; bind_addresses = [ "127.0.0.1" ]; @@ -57,10 +41,10 @@ in postgresql = { enable = true; package = pkgs.postgresql; - ensureUsers = [{ - name = db_name; - ensurePermissions = { "DATABASE \"${db_name}\"" = "ALL PRIVILEGES"; }; - }]; + # ensureUsers = [{ + # name = db_name; + # ensurePermissions = { "DATABASE \"${db_name}\"" = "ALL PRIVILEGES"; }; + # }]; }; nginx.virtualHosts = {