nixos/nginx: reload on acme cert renewal
commita3ec0f1593b508e259bb20b3fe185f0f397e41c0
authorFranz Pletz <fpletz@fnordicwalking.de>
dateTue 19 Jul 2016, 15:34 (10 years ago)
parent8d31733
nixos/modules/services/web-servers/nginx/default.nix+3
@@ -394,6 +394,9 @@ in
394394 optionalAttrs vhostConfig.enableACME {
395395 webroot = vhostConfig.acmeRoot;
396396 extraDomains = genAttrs vhostConfig.serverAliases (alias: null);
397+ postRun = ''
398+ systemctl reload nginx
399+ '';
397400 }
398401 ) virtualHosts
399402 );