nginx: remove deprecated enableSSL
authorJulien Moutinho <julm@sourcephile.fr>
Thu, 13 Feb 2020 16:32:07 +0000 (17:32 +0100)
committerJulien Moutinho <julm@sourcephile.fr>
Thu, 13 Feb 2020 16:32:07 +0000 (17:32 +0100)
servers/mermet/dovecot/sourcephile.fr.nix
servers/mermet/nginx/sourcephile.fr/git.nix
servers/mermet/nginx/sourcephile.fr/www.nix

index 46f01c07e19f72892145e57d19667bc61629756a..7271c05b54c9c565d60aef5551290750a1f997b7 100644 (file)
@@ -53,6 +53,8 @@ services.nginx.virtualHosts."autoconfig.${domain}" = {
     access_log off;
     log_not_found off;
   '';
+  forceSSL = true;
+  useACMEHost = domain;
   root = pkgs.writeTextFile {
     name = "autoconfig";
     destination = "/mail/config-v1.1.xml";
index c1d53363aeb9b42e8c84e27c46affcdc6eeabcc8..c031b505d017b5b8fdfa368925bd670bf2bbaab3 100644 (file)
@@ -25,7 +25,6 @@ in
         map (domainAlias: "git." + domainAlias)
             config.networking.domainAliases;
       forceSSL = false;
-      enableSSL = true;
       useACMEHost = domain;
       locations = {
         "/" = {
index f4ea868c1bab0da9b61b4e598df18f86f4d22e79..9426af2625f2be6beb6ced5cf4bc06ecf5395376 100644 (file)
@@ -13,7 +13,6 @@ in
         ++ map (domainAlias: "www." + domainAlias)
           config.networking.domainAliases;
       forceSSL = false;
-      enableSSL = true;
       useACMEHost = domain;
       globalRedirect = "git.${networking.domain}";
     };