trying to get postfix running
This commit is contained in:
parent
ab5df354ff
commit
1f4e9a620b
|
@ -45,8 +45,7 @@ in
|
||||||
};
|
};
|
||||||
postfix = {
|
postfix = {
|
||||||
enable = true;
|
enable = true;
|
||||||
port = 25;
|
port = 9003;
|
||||||
user = config.serivces.postfix.user;
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
scrapeConfigs = [
|
scrapeConfigs = [
|
||||||
|
@ -57,13 +56,20 @@ in
|
||||||
}];
|
}];
|
||||||
scrape_interval = "15s";
|
scrape_interval = "15s";
|
||||||
}
|
}
|
||||||
|
{
|
||||||
|
job_name = "postfix";
|
||||||
|
static_configs = [{
|
||||||
|
targets = [ "127.0.0.1:${toString config.services.prometheus.exporters.postfix.port}" ];
|
||||||
|
}];
|
||||||
|
# scrape_interval = "60s";
|
||||||
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
# nginx reverse proxy
|
# nginx reverse proxy
|
||||||
services.nginx.virtualHosts.${domain} = {
|
services.nginx.virtualHosts.${domain} = {
|
||||||
locations."/" = {
|
locations."/" = {
|
||||||
proxyPass = "http://localhost:${toString config.services.grafana.port}";
|
proxyPass = "http://localhost:${toString config.services.grafana.settings.server.http_port}";
|
||||||
proxyWebsockets = true;
|
proxyWebsockets = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
_final: prev:
|
_final: prev:
|
||||||
let
|
let
|
||||||
inherit (prev) fetchurl;
|
inherit (prev) fetchurl;
|
||||||
|
inherit (prev) fetchFromGitHub;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
# AGDSN is running an outdated version that we have to comply to
|
# AGDSN is running an outdated version that we have to comply to
|
||||||
|
@ -11,5 +12,14 @@ in
|
||||||
sha256 = "sha256-3w+FJezbo4DnS1N8pxrfO3WWWT8CGJtZqw6//IXMyN4=";
|
sha256 = "sha256-3w+FJezbo4DnS1N8pxrfO3WWWT8CGJtZqw6//IXMyN4=";
|
||||||
};
|
};
|
||||||
}));
|
}));
|
||||||
|
# (hopefully) fix systemd journal reading
|
||||||
|
prometheus-postfix-exporter = prev.prometheus-postfix-exporter.overrideAttrs (old: rec {
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "adangel";
|
||||||
|
repo = "postfix_exporter";
|
||||||
|
rev = "414ac12ee63415eede46cb3084d755a6da6fba23";
|
||||||
|
hash = "sha256-m1kVaO3N7XC1vtnxXX9kMiEFPmZuoopRUYgA7gQzP8w=";
|
||||||
|
};
|
||||||
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue