nixos/acme: Suggest directory used security.acme.certs.<name>.webroot

This commit is contained in:
Sandro Jäckel 2021-01-09 00:33:40 +01:00
parent 40842049e8
commit a7e31c64d9
No known key found for this signature in database
GPG Key ID: 3AF5A43A3EECC2E5

View File

@ -317,7 +317,7 @@ let
webroot = mkOption { webroot = mkOption {
type = types.nullOr types.str; type = types.nullOr types.str;
default = null; default = null;
example = "/var/lib/acme/acme-challenges"; example = "/var/lib/acme/acme-challenge";
description = '' description = ''
Where the webroot of the HTTP vhost is located. Where the webroot of the HTTP vhost is located.
<filename>.well-known/acme-challenge/</filename> directory <filename>.well-known/acme-challenge/</filename> directory
@ -550,12 +550,12 @@ in {
example = literalExample '' example = literalExample ''
{ {
"example.com" = { "example.com" = {
webroot = "/var/www/challenges/"; webroot = "/var/lib/acme/acme-challenge/";
email = "foo@example.com"; email = "foo@example.com";
extraDomainNames = [ "www.example.com" "foo.example.com" ]; extraDomainNames = [ "www.example.com" "foo.example.com" ];
}; };
"bar.example.com" = { "bar.example.com" = {
webroot = "/var/www/challenges/"; webroot = "/var/lib/acme/acme-challenge/";
email = "bar@example.com"; email = "bar@example.com";
}; };
} }