We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Learn more about funding links in repositories.
Report abuse
1 parent 115808b commit 9d0e39bCopy full SHA for 9d0e39b
nixos/modules/security/acme.nix
@@ -179,6 +179,7 @@ in
179
path = [ pkgs.simp_le ];
180
preStart = ''
181
mkdir -p '${cfg.directory}'
182
+ chown '${data.user}:${data.group}' '${cfg.directory}'
183
if [ ! -d '${cpath}' ]; then
184
mkdir '${cpath}'
185
fi
nixos/modules/security/acme.xml
@@ -75,7 +75,7 @@ options for the <literal>security.acme</literal> module.</para>
75
76
<programlisting>
77
security.acme.certs."foo.example.com" = {
78
- webroot = "/var/www/challenges";
+ webroot = config.security.acme.directory + "/acme-challenge";
79
email = "foo@example.com";
80
user = "nginx";
81
group = "nginx";
0 commit comments