Fix SSL for mailcow
Previously we were still copying all certificates, including ones that were not
used for mailcow, over to mailcow for SNI purposes. This appeared to confuse
mailcow and cause it to provide an old certificate, which expired causing us to
fail SSL checks.
Change-Id: Ifceda7e8161971db3eb517842663803b1a34b13f
Reviewed-on: https://git.clicks.codes/c/Infra/NixFiles/+/627
Reviewed-by: Samuel Shuert <coded@clicks.codes>
Tested-by: Skyler Grey <minion@clicks.codes>
diff --git a/modules/common/mailcow.nix b/modules/common/mailcow.nix
index f046684..533e342 100644
--- a/modules/common/mailcow.nix
+++ b/modules/common/mailcow.nix
@@ -30,6 +30,5 @@
cp -r $(pwd)/* /opt/mailcow-dockerized/data/assets/ssl/
'';
};
- defaults.postRun = "cp -r $(pwd) /opt/mailcow-dockerized/data/assets/ssl/";
};
}