keycloak wip

This commit is contained in:
2025-07-24 16:03:43 -05:00
parent 375ee4aa93
commit 48514892af
2 changed files with 20 additions and 5 deletions

View File

@@ -260,7 +260,7 @@
virtualization = { virtualization = {
traefik.enable = true; traefik.enable = true;
authentik.enable = true; authentik.enable = true;
jellyfin.enable = false; jellyfin.enable = true;
"blunkall.us".enable = true; "blunkall.us".enable = true;
pihole.enable = false; #broken pihole.enable = false; #broken
nextcloud.enable = true; nextcloud.enable = true;

View File

@@ -14,6 +14,10 @@
hostAddress = "192.168.100.10"; hostAddress = "192.168.100.10";
localAddress = "192.168.100.22"; localAddress = "192.168.100.22";
extraFlags = [
"--load-credential=dbpass:${config.sops.secrets."keycloak/dbpass".path}"
];
bindMounts = { bindMounts = {
"/etc/keycloak" = { "/etc/keycloak" = {
hostPath = "/ssd1/Keycloak"; hostPath = "/ssd1/Keycloak";
@@ -23,16 +27,27 @@
config = { config = {
systemd.services.secrets_setup = {
wantedBy = [ "keycloak.service" ];
serviceConfig = {
LoadCredential = [
"dbpass"
];
};
script = ''
cat ''${CREDENTIALS_DIRECTORY}/dbpass > /etc/keycloak/dbpass
chown keycloak:keycloak /etc/keycloak/*
'';
};
services.keycloak = { services.keycloak = {
enable = true; enable = true;
settings = { settings = {
hostname = "auth.blunkall.us"; hostname = "auth.blunkall.us";
http-enabled = true;
}; };
}; };