Allow the nginx user to access SSL certificates
Fixes this error: > Failed assertions: > - Certificate oliverdavies.uk (group=acme) must be readable by service(s) nginx.service (user=nginx groups=nginx), nginx-config-reload.service (user=root groups=)
This commit is contained in:
parent
3d806c436f
commit
be26969d9b
1 changed files with 2 additions and 0 deletions
|
@ -47,5 +47,7 @@ in
|
|||
};
|
||||
};
|
||||
|
||||
users.users.${config.services.nginx.user}.extraGroups = [ "acme" ];
|
||||
|
||||
imports = [ ./www.oliverdavies.uk.nix ];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue