990 B
990 B
modules/nixos/server/dns/certbot/
Let's Encrypt certificate management via certbot + the nginx plugin, for public-facing domains.
Files
certbot/
└── default.nix # skyg.server.dns.certbot.*
Behaviour
- Installs
certbot+certbot-nginxand enables nginx. - Sets up a
certbot-renewsystemd service + daily timer (usesrenew --dry-runwhentestMode = true). - Provides a
certbot-get-certsshell alias that runs a non-interactivecertonly --nginxfor every domain inpublicDomains, registered withemail.
Option Namespace
skyg.server.dns.certbot.enable
skyg.server.dns.certbot.publicDomains # list of domains
skyg.server.dns.certbot.email # ACME account email
skyg.server.dns.certbot.testMode # dry-run renewals
Conventions
- Initial issuance is manual (run
certbot-get-certs); renewal is automated by the timer. - For internal-only domains use the
local-casibling module instead of Let's Encrypt.