Enable prometheus alertmanager
This commit is contained in:
parent
fa0c4cabcc
commit
50cd2305c4
3 changed files with 26 additions and 0 deletions
|
@ -22,6 +22,25 @@
|
|||
proxyWebsockets = true;
|
||||
};
|
||||
};
|
||||
"alertmanager.grzb.de"= {
|
||||
forceSSL = true;
|
||||
enableACME = true;
|
||||
listen = [
|
||||
{
|
||||
addr = "0.0.0.0";
|
||||
port = 80;
|
||||
}
|
||||
{
|
||||
addr = "0.0.0.0";
|
||||
port = 443;
|
||||
ssl = true;
|
||||
}
|
||||
];
|
||||
locations."/" = {
|
||||
proxyPass = "http://${config.services.prometheus.alertmanager.listenAddress}:${builtins.toString config.services.prometheus.alertmanager.port}";
|
||||
proxyWebsockets = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue