From 4494fcaab7abb0f9eb63371c243826afcc0fb9c1 Mon Sep 17 00:00:00 2001 From: Sandro Date: Tue, 6 Feb 2024 01:51:09 +0100 Subject: [PATCH] nixos/acme: default to lets encrypt production URL instead of null, mention lets encrypt staging URI (#270221) --- nixos/modules/security/acme/default.nix | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/nixos/modules/security/acme/default.nix b/nixos/modules/security/acme/default.nix index 40d9c487996b..19297d267851 100644 --- a/nixos/modules/security/acme/default.nix +++ b/nixos/modules/security/acme/default.nix @@ -545,12 +545,14 @@ let }; server = mkOption { - type = types.nullOr types.str; - inherit (defaultAndText "server" null) default defaultText; + type = types.str; + inherit (defaultAndText "server" "https://acme-v02.api.letsencrypt.org/directory") default defaultText; + example = "https://acme-staging-v02.api.letsencrypt.org/directory"; description = lib.mdDoc '' - ACME Directory Resource URI. Defaults to Let's Encrypt's - production endpoint, - , if unset. + ACME Directory Resource URI. + Defaults to Let's Encrypt's production endpoint. + For testing Let's Encrypt's [staging endpoint](https://letsencrypt.org/docs/staging-environment/) + should be used to avoid the rather tight rate limit on the production endpoint. ''; };