add assertion to avoid issue with sso without ssl

This commit is contained in:
ibizaman 2025-03-17 01:10:01 +01:00 committed by Pierre Penninckx
parent cf944bee37
commit 543f9540bd
2 changed files with 7 additions and 1 deletions

View file

@ -92,6 +92,8 @@
};
};
};
shb.nextcloud.ssl = config.shb.certs.certs.selfsigned.n;
shb.ldap.ssl = config.shb.certs.certs.selfsigned.n;
services.dnsmasq = {
enable = true;

View file

@ -1061,9 +1061,13 @@ in
in lib.mkIf (cfg.enable && cfg.apps.sso.enable) {
assertions = [
{
assertion = cfg.apps.sso.enable -> cfg.apps.ldap.enable;
assertion = cfg.apps.ldap.enable;
message = "SSO app requires LDAP app to work correctly.";
}
{
assertion = cfg.ssl != null;
message = "To integrate SSO, SSL must be enabled, set the shb.nextcloud.ssl option.";
}
];
systemd.services.nextcloud-setup.script =