Use bound IP address instead

This commit is contained in:
Natsu Kagami 2022-11-14 17:55:13 +01:00
parent ccb91b4feb
commit 6a14d9d7ad
Signed by: nki
GPG key ID: 7306B3D3C3AD6E51

View file

@ -74,7 +74,7 @@
cloud.mail = {
enable = true;
debug = true;
local_ip = "178.128.135.11"; # resolved from mx1.nkagami.me
local_ip = (builtins.elemAt config.networking.interfaces.eth0.ipv4.addresses 0).address;
tls.certFile = "${config.cloud.traefik.certsDumper.destination}/${config.cloud.mail.hostname}/certificate.crt";
tls.keyFile = "${config.cloud.traefik.certsDumper.destination}/${config.cloud.mail.hostname}/privatekey.key";
usersFile = config.sops.secrets.mail-users.path;