Skip to content

Commit

Permalink
nixos/acme: Fix b.example.com test
Browse files Browse the repository at this point in the history
  • Loading branch information
m1cr0man committed Feb 9, 2020
1 parent ac983cf commit 636eb23
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 0 additions & 2 deletions nixos/modules/security/acme.nix
Original file line number Diff line number Diff line change
Expand Up @@ -333,9 +333,7 @@ in
chown '${data.user}:${data.group}' *.pem
fi
echo post stuff
${data.postRun}
echo done
'';
in
"+${script}";
Expand Down
3 changes: 2 additions & 1 deletion nixos/tests/acme.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 [
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 636eb23

Please sign in to comment.