forked from mirrors/nixpkgs
nixos/acme: Fix b.example.com test
This commit is contained in:
parent
ac983cff48
commit
636eb23157
|
@ -333,9 +333,7 @@ in
|
|||
chown '${data.user}:${data.group}' *.pem
|
||||
fi
|
||||
|
||||
echo post stuff
|
||||
${data.postRun}
|
||||
echo done
|
||||
'';
|
||||
in
|
||||
"+${script}";
|
||||
|
|
|
@ -63,7 +63,7 @@ in import ./make-test-python.nix {
|
|||
};
|
||||
};
|
||||
|
||||
webserver = { nodes, config, pkgs, lib, ... }: let parentConfig = config; in {
|
||||
webserver = { nodes, config, pkgs, lib, ... }: {
|
||||
imports = [ commonConfig ];
|
||||
networking.firewall.allowedTCPPorts = [ 80 443 ];
|
||||
networking.nameservers = lib.mkForce [
|
||||
|
@ -97,6 +97,7 @@ in import ./make-test-python.nix {
|
|||
systemd.services."acme-b.example.com" = {
|
||||
wants = [ "acme-finished-b.example.com.target" ];
|
||||
before = [ "acme-finished-b.example.com.target" ];
|
||||
after = [ "nginx.service" ];
|
||||
};
|
||||
services.nginx.virtualHosts."b.example.com" = {
|
||||
enableACME = true;
|
||||
|
|
Loading…
Reference in a new issue