Skip to content

Commit

Permalink
Serve grafana and prometheus under monitoring.nixos.org
Browse files Browse the repository at this point in the history
From now we should serve them at the same time, but we will remove this
in the next steps. For more please refer to #137
  • Loading branch information
garbas committed Dec 3, 2020
1 parent b3ad8c9 commit bd43f81
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions delft/eris.nix
Expand Up @@ -47,6 +47,13 @@ in {
locations."/grafana/".proxyPass = "http://${config.services.grafana.addr}:${toString config.services.grafana.port}/";
locations."/prometheus".proxyPass = "http://${config.services.prometheus.listenAddress}:${toString config.services.prometheus.port}";
};
virtualHosts."monitoring.nixos.org" = {
enableACME = true;
forceSSL = true;
locations."/".return = "302 https://status.nixos.org";
locations."/prometheus/".proxyPass = "http://${config.services.prometheus.listenAddress}:${toString config.services.prometheus.port}";
locations."/grafana/".proxyPass = "http://${config.services.grafana.addr}:${toString config.services.grafana.port}/";
};
};

services.prometheus = {
Expand Down

0 comments on commit bd43f81

Please sign in to comment.