Add Keycloak to enabled services and refactor configuration settings structure
This commit is contained in:
@@ -76,6 +76,7 @@ in
|
|||||||
"mealie"
|
"mealie"
|
||||||
"metube"
|
"metube"
|
||||||
"atticd"
|
"atticd"
|
||||||
|
"keycloak"
|
||||||
]
|
]
|
||||||
// enableList mkEnabledIp [
|
// enableList mkEnabledIp [
|
||||||
"audiobookshelf"
|
"audiobookshelf"
|
||||||
|
|||||||
@@ -31,12 +31,14 @@ in
|
|||||||
name = "keycloak";
|
name = "keycloak";
|
||||||
passwordFile = config.sops.secrets."keycloak/db_password".path;
|
passwordFile = config.sops.secrets."keycloak/db_password".path;
|
||||||
};
|
};
|
||||||
settings.hostname = cfg.host;
|
settings = {
|
||||||
"hostname-strict" = true;
|
hostname = cfg.host;
|
||||||
"hostname-strict-https" = false;
|
hostname-strict = true;
|
||||||
"http-enabled" = true;
|
hostname-strict-https = false;
|
||||||
"http-port" = cfg.port;
|
http-enabled = true;
|
||||||
"proxy" = "edge";
|
http-port = cfg.port;
|
||||||
|
proxy = "edge";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
systemd.services.keycloak.serviceConfig.EnvironmentFile = config.sops.secrets.keycloak.path;
|
systemd.services.keycloak.serviceConfig.EnvironmentFile = config.sops.secrets.keycloak.path;
|
||||||
services.nginx.virtualHosts.${cfg.host} = lib.mkIf (cfg.enableProxy && config.my.enableProxy) (
|
services.nginx.virtualHosts.${cfg.host} = lib.mkIf (cfg.enableProxy && config.my.enableProxy) (
|
||||||
|
|||||||
Reference in New Issue
Block a user