nixbld: enable munin

This commit is contained in:
Sebastien Bourdeauducq 2019-05-24 10:26:59 +08:00
parent 898e81abc3
commit 64eaa90250
1 changed files with 10 additions and 0 deletions

View File

@ -170,6 +170,15 @@ ACTION=="add", SUBSYSTEM=="tty", \
virtualisation.libvirtd.enable = true;
virtualisation.docker.enable = true;
services.munin-node.enable = true;
services.munin-cron = {
enable = true;
hosts = ''
[${config.networking.hostName}]
address localhost
'';
};
services.gitea = {
enable = true;
httpPort = 3001;
@ -264,6 +273,7 @@ ACTION=="add", SUBSYSTEM=="tty", \
"lab.m-labs.hk" = {
addSSL = true;
useACMEHost = "nixbld.m-labs.hk";
locations."/munin".alias = "/var/www/munin";
locations."/homu/".proxyPass = "http://127.0.0.1:54856/";
};
"nixbld.m-labs.hk" = {