add acme registration to server config

This commit is contained in:
Anish Lakhwara 2022-09-21 01:32:09 +10:00
parent 7cf685a1f2
commit ada5e5ad6a
2 changed files with 4 additions and 0 deletions

View file

@ -7,4 +7,7 @@
};
networking.firewall.allowedTCPPorts = [ 80 433 22 ]; # ssh and website
security.sudo.wheelNeedsPassword = false; # needed for deploy-rs
security.acme.defaults.email = "anish+acme@lakhwara.com";
security.acme.acceptTerms = true;
}

View file

@ -1,6 +1,7 @@
{ self, pkgs, ... }:
{
services."anish.lakhwara.com".enable = true;
services."anish.lakhwara.com".enableSSL = true;
security.acme.email = "anish+acme@lakhwara.com";
security.acme.acceptTerms = true;
}