acme: ensure nginx challenges directory is writeable
This commit is contained in:
parent
69e0740baa
commit
75f131da02
@ -178,6 +178,7 @@ in
|
|||||||
path = [ pkgs.simp_le ];
|
path = [ pkgs.simp_le ];
|
||||||
preStart = ''
|
preStart = ''
|
||||||
mkdir -p '${cfg.directory}'
|
mkdir -p '${cfg.directory}'
|
||||||
|
chown '${data.user}:${data.group}' '${cfg.directory}'
|
||||||
if [ ! -d '${cpath}' ]; then
|
if [ ! -d '${cpath}' ]; then
|
||||||
mkdir '${cpath}'
|
mkdir '${cpath}'
|
||||||
fi
|
fi
|
||||||
|
@ -75,7 +75,7 @@ options for the <literal>security.acme</literal> module.</para>
|
|||||||
|
|
||||||
<programlisting>
|
<programlisting>
|
||||||
security.acme.certs."foo.example.com" = {
|
security.acme.certs."foo.example.com" = {
|
||||||
webroot = "/var/www/challenges";
|
webroot = config.security.acme.directory + "/acme-challenge";
|
||||||
email = "foo@example.com";
|
email = "foo@example.com";
|
||||||
user = "nginx";
|
user = "nginx";
|
||||||
group = "nginx";
|
group = "nginx";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user