summary refs log tree commit diff stats
path: root/system/services
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--system/services/default.nix1
-rw-r--r--system/services/keycloak/default.nix45
2 files changed, 0 insertions, 46 deletions
diff --git a/system/services/default.nix b/system/services/default.nix
index f44165b..0c60f41 100644
--- a/system/services/default.nix
+++ b/system/services/default.nix
@@ -4,7 +4,6 @@
     ./fail2ban
     ./invidious
     ./invidious-router
-    ./keycloak
     ./libreddit
     ./mail
     ./mastodon
diff --git a/system/services/keycloak/default.nix b/system/services/keycloak/default.nix
deleted file mode 100644
index 5f21b90..0000000
--- a/system/services/keycloak/default.nix
+++ /dev/null
@@ -1,45 +0,0 @@
-{config, ...}: {
-  services.nginx = {
-    enable = true;
-
-    # enable recommended settings
-    recommendedGzipSettings = true;
-    recommendedOptimisation = true;
-    recommendedTlsSettings = true;
-    recommendedProxySettings = true;
-
-    virtualHosts = {
-      "auth.vhack.eu" = {
-        forceSSL = true;
-        enableACME = true;
-        locations = {
-          "/" = {
-            proxyPass = "http://localhost:${toString config.services.keycloak.settings.http-port}/";
-          };
-        };
-      };
-    };
-  };
-
-  services.postgresql.enable = true;
-
-  services.keycloak = {
-    enable = true;
-
-    database = {
-      type = "postgresql";
-      createLocally = true;
-
-      username = "keycloak";
-      passwordFile = "${config.age.secrets.keycloak.path}";
-    };
-
-    settings = {
-      hostname = "auth.vhack.eu";
-      http-relative-path = "/";
-      http-port = 38080;
-      proxy = "passthrough";
-      http-enabled = true;
-    };
-  };
-}