summary refs log tree commit diff stats
path: root/system/services/keycloak/default.nix
diff options
context:
space:
mode:
authorsils <sils@sils.li>2024-02-11 19:07:49 +0100
committersils <sils@sils.li>2024-02-11 19:07:49 +0100
commit455df50c83ded31424bdcf641656fed641e647a2 (patch)
tree8397334b4307a991f1d227c4086bff1bbc6a60b0 /system/services/keycloak/default.nix
parentbuild(flake): update (diff)
downloadnixos-server-455df50c83ded31424bdcf641656fed641e647a2.tar.gz
nixos-server-455df50c83ded31424bdcf641656fed641e647a2.zip
feat: remove keycloak
Diffstat (limited to '')
-rw-r--r--system/services/keycloak/default.nix45
1 files changed, 0 insertions, 45 deletions
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;
-    };
-  };
-}