add assertion to avoid issue with sso without ssl
This commit is contained in:
parent
cf944bee37
commit
543f9540bd
2 changed files with 7 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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 =
|
||||
|
|
|
|||
Loading…
Reference in a new issue