diff --git a/hosts/cube/mail.nix b/hosts/cube/mail.nix index 59aadfe..7af04eb 100644 --- a/hosts/cube/mail.nix +++ b/hosts/cube/mail.nix @@ -10,11 +10,22 @@ in serverSystemConfiguration { imap.host = domain; imap.passwordFile = config.age.secrets."cube.mail.password".path; imap.username = "contact@${domain}"; + + listenAddress = "::"; + port = 9020; }; - dovecot = enabled {}; - postfix = enabled {}; - rspamd = enabled {}; + dovecot = enabled { + port = 9021; + }; + + postfix = enabled { + port = 9022; + }; + + rspamd = enabled { + port = 9023; + }; }; mailserver = enabled { diff --git a/hosts/cube/nginx.nix b/hosts/cube/nginx.nix index d42bcaf..8b81366 100644 --- a/hosts/cube/nginx.nix +++ b/hosts/cube/nginx.nix @@ -4,8 +4,13 @@ serverSystemConfiguration { networking.firewall.allowedTCPPorts = [ 80 443 ]; services.prometheus.exporters = { - nginxlog = enabled {}; - nginx = enabled {}; + nginxlog = enabled { + port = 9011; + }; + + nginx = enabled { + port = 9010; + }; }; services.nginx = enabled { diff --git a/hosts/cube/prometheus.nix b/hosts/cube/prometheus.nix index 51832f7..0ca200d 100644 --- a/hosts/cube/prometheus.nix +++ b/hosts/cube/prometheus.nix @@ -2,8 +2,11 @@ serverSystemConfiguration { services.prometheus = enabled { + port = 9000; + exporters.node = enabled { enabledCollectors = [ "systemd" ]; + port = 9001; }; }; }