Jump to content

Certbot: Difference between revisions

51 bytes added ,  12 September 2022
Add module agreeTerms option
imported>Onny
(Add recommendation to prefer security.acme module)
imported>Onny
(Add module agreeTerms option)
Line 8: Line 8:
Install ''certbot'' application and enable ''systemd-timer'' for automated renewal of certificates
Install ''certbot'' application and enable ''systemd-timer'' for automated renewal of certificates
{{file|/etc/nixos/configuration.nix|nix|<nowiki>
{{file|/etc/nixos/configuration.nix|nix|<nowiki>
services.certbot.enable = true;
services.certbot = {
  enable = true;
  agreeTerms = true;
};
</nowiki>}}
</nowiki>}}
== Usage ==
== Usage ==
Line 50: Line 53:
services.certbot = {
services.certbot = {
   enable = true;
   enable = true;
  agreeTerms = true;
   package = pkgs.certbot.withPlugins (ps: with ps; [ certbot-dns-inwx ]);
   package = pkgs.certbot.withPlugins (ps: with ps; [ certbot-dns-inwx ]);
}
}
Anonymous user