add assertion to avoid issue with sso without ssl
This commit is contained in:
parent
f973516d9a
commit
6765d674bf
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 = {
|
services.dnsmasq = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
|
||||||
|
|
@ -1061,9 +1061,13 @@ in
|
||||||
in lib.mkIf (cfg.enable && cfg.apps.sso.enable) {
|
in lib.mkIf (cfg.enable && cfg.apps.sso.enable) {
|
||||||
assertions = [
|
assertions = [
|
||||||
{
|
{
|
||||||
assertion = cfg.apps.sso.enable -> cfg.apps.ldap.enable;
|
assertion = cfg.apps.ldap.enable;
|
||||||
message = "SSO app requires LDAP app to work correctly.";
|
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 =
|
systemd.services.nextcloud-setup.script =
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue