3
0
Fork 0
forked from mirrors/nixpkgs

nginx: set correct acme permissions

This commit is contained in:
Robin Gloster 2016-10-20 11:03:39 +02:00
parent c2eb39faba
commit d05d063572
No known key found for this signature in database
GPG key ID: 5E4C836C632C2882

View file

@ -392,6 +392,8 @@ in
security.acme.certs = filterAttrs (n: v: v != {}) ( security.acme.certs = filterAttrs (n: v: v != {}) (
mapAttrs (vhostName: vhostConfig: mapAttrs (vhostName: vhostConfig:
optionalAttrs vhostConfig.enableACME { optionalAttrs vhostConfig.enableACME {
user = cfg.user;
group = cfg.group;
webroot = vhostConfig.acmeRoot; webroot = vhostConfig.acmeRoot;
extraDomains = genAttrs vhostConfig.serverAliases (alias: null); extraDomains = genAttrs vhostConfig.serverAliases (alias: null);
postRun = '' postRun = ''