authelia's store-login units wait for the container's network
This commit is contained in:
parent
12c7d7c01a
commit
1665436347
1 changed files with 30 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue