shack/prometheus: remove legacy config

This commit is contained in:
makefu 2019-07-20 00:10:16 +02:00
parent c929afa9f3
commit 91833c560a
No known key found for this signature in database
GPG Key ID: 36F7711F3FC0F225
2 changed files with 9 additions and 3 deletions

View File

@ -1,3 +1,4 @@
# hostname: mqtt.shack
{
networking.firewall.allowedTCPPorts = [ 1883 ];
networking.firewall.allowedUDPPorts = [ 1883 ];

View File

@ -3,14 +3,19 @@
{
networking = {
firewall.allowedTCPPorts = [
3000 # grafana
9090 # prometheus
9093 # alertmanager
];
useDHCP = true;
};
services = {
nginx.virtualHosts = {
"prometheus.shack" = {
locations."/".proxyPass = "http://localhost:9090";
};
"alert.prometheus.shack" = {
locations."/".proxyPass = "http://localhost:9093";
};
};
prometheus = {
enable = true;
extraFlags = [