git.iko.soy/typeable/nixpkgs
on master help sign in
nixos/tests/letsencrypt: Fix nginx options

The enableSSL option has been deprecated in a912a6a291eaa5f6a2ad9143c9e276779c357a41, so we switch to using onlySSL. I've also explicitly disabled enableACME, because this is the default and we don't actually want to have ACME enabled for a host which runs an actual ACME server. Signed-off-by: aszlig <aszlig@redmoonstudios.org>

commitbda38317eb3ad36be74ad08013afeaf55fe9066f authoraszlig <aszlig@redmoonstudios.org> dateWed 13 Sep 2017, 23:03 (9 years ago) parent11b3ae7
1 file changed+4−2
nixos/tests/common/letsencrypt.nix+4−2
nixos/tests/common/letsencrypt.nix+4−2
@@ -371,13 +371,15 @@ in {
371371 services.nginx.enable = true;
372372 services.nginx.recommendedProxySettings = true;
373373 services.nginx.virtualHosts.${wfeDomain} = {
374− enableSSL = true;
374+ onlySSL = true;
375+ enableACME = false;
375376 sslCertificate = wfeCertFile;
376377 sslCertificateKey = wfeKeyFile;
377378 locations."/".proxyPass = "http://127.0.0.1:80";
378379 };
379380 services.nginx.virtualHosts.${siteDomain} = {
380− enableSSL = true;
381+ onlySSL = true;
382+ enableACME = false;
381383 sslCertificate = siteCertFile;
382384 sslCertificateKey = siteKeyFile;
383385 locations.${tosPath}.extraConfig = "alias ${tosFile};";