summary refs log tree commit diff stats
path: root/system/services/keycloak/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'system/services/keycloak/default.nix')
-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;
-    };
-  };
-}