summaryrefslogtreecommitdiff
path: root/hosts/auth/keycloak.nix
diff options
context:
space:
mode:
authorGrisha Shipunov2025-01-19 20:38:22 +0100
committerGrisha Shipunov2025-01-19 20:38:22 +0100
commit42128ebbe19d0aa3841245a423aeb6636c9b23d3 (patch)
tree92737f264d06a1b72fa0d7f48706f89c5b26902d /hosts/auth/keycloak.nix
parent5c3f0886e592ff2d3e3a8588ab496f36c19e0ce9 (diff)
move microvms to hosts folder
Diffstat (limited to 'hosts/auth/keycloak.nix')
-rw-r--r--hosts/auth/keycloak.nix18
1 files changed, 18 insertions, 0 deletions
diff --git a/hosts/auth/keycloak.nix b/hosts/auth/keycloak.nix
new file mode 100644
index 0000000..de537ef
--- /dev/null
+++ b/hosts/auth/keycloak.nix
@@ -0,0 +1,18 @@
+{ config, ... }:
+{
+ services.keycloak = {
+ enable = true;
+ database = {
+ type = "postgresql";
+ createLocally = true;
+ passwordFile = config.sops.secrets."keycloak/db_pass".path;
+ };
+ settings = {
+ hostname = "https://auth.oxapentane.com";
+ http-port = 38080;
+ http-enabled = true;
+ proxy-headers = "xforwarded";
+ proxy-trusted-addresses = "10.89.88.0/24,fd31:185d:722f::/48";
+ };
+ };
+}