From db0e4109fbc21b086f709d230c9dd8b6a29cfd57 Mon Sep 17 00:00:00 2001 From: Alexander Bantyev Date: Tue, 28 Jul 2020 13:39:11 +0300 Subject: [PATCH] Fix mailserver --- modules/mailserver.nix | 4 +++- modules/nginx.nix | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/mailserver.nix b/modules/mailserver.nix index 5d12fca..07fe019 100644 --- a/modules/mailserver.nix +++ b/modules/mailserver.nix @@ -84,7 +84,9 @@ in { }; }; localDnsResolver = false; - certificateScheme = 3; + certificateScheme = 1; + certificateFile = "/var/lib/acme/balsoft.ru/fullchain.pem"; + keyFile = "/var/lib/acme/balsoft.ru/key.pem"; enableImap = true; enableImapSsl = true; virusScanning = false; diff --git a/modules/nginx.nix b/modules/nginx.nix index 24a2099..a413507 100644 --- a/modules/nginx.nix +++ b/modules/nginx.nix @@ -9,6 +9,7 @@ }; in { "balsoft.ru" = { + default = true; locations."/" = { root = "/var/lib/balsoft.ru"; index = "index.txt";