authelia: add target to wait for

This commit is contained in:
ibizaman 2025-08-22 23:13:31 +02:00 committed by Pierre Penninckx
parent dd2fbf9ea8
commit 12721fea39
2 changed files with 14 additions and 1 deletions

View file

@ -597,5 +597,18 @@ in
];
}
];
systemd.targets."authelia-${fqdn}" = let
services = [
"authelia-${fqdn}.service"
] ++ lib.optionals cfg.debug [
config.shb.mitmdump.instances."authelia-${fqdn}".serviceName
];
in {
after = services;
requires = services;
wantedBy = [ "multi-user.target" ];
};
};
}

View file

@ -129,7 +129,7 @@ in
def tests():
machine.wait_for_unit("lldap.service")
machine.wait_for_unit("authelia-authelia.machine.com.service")
machine.wait_for_unit("authelia-authelia.machine.com.target")
machine.wait_for_open_port(9091)
endpoints = json.loads(machine.succeed("curl -s http://machine.com/.well-known/openid-configuration"))