Watch
0
0
Fork
You've already forked hyperhive
0

authelia's store-login units wait for the container's network

This commit is contained in:
atlas 2026-11-04 18:51:53 +01:00
commit 1665436347

View file

@ -1181,6 +1181,12 @@ in
wantedBy = [ "multi-user.target" ] ++ lib.optional publishes "${unitName}.service";
before = [ "${unitName}.service" ];
requiredBy = lib.optional (!publishes) "${unitName}.service";
# The store login dials the store by name, which needs the
# container's bridge address: it exists once the DHCP lease is in,
# which is when `network-online.target` is reached
# (../container-modules/swarm-container.nix).
after = lib.optional publishes "network-online.target";
wants = lib.optional publishes "network-online.target";
# `deployCfg.authelia.package` is here for its CLI, not its
# daemon: the client secrets are minted with `authelia crypto
# hash generate`, which is the only way to produce a digest in
@ -1294,11 +1300,13 @@ in
after = [
"${unitName}-secrets.service"
"${unitName}.service"
];
]
++ lib.optional publishes "network-online.target";
wants = [
"${unitName}-secrets.service"
"${unitName}.service"
];
]
++ lib.optional publishes "network-online.target";
path = lib.optionals publishes [
pkgs.coreutils
pkgs.gnugrep