@cryptotaxi247 / infra / commits / bd43f81f

Serve grafana and prometheus under monitoring.nixos.org

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

Rok Garbas committed Dec 3, 2020 at 16:35 UTC bd43f81f8d35203df86b962cd7b4e077d0922837
1 file changed +7
delft/eris.nix
+7
@@ -47,6 +47,13 @@ in {
47 locations."/grafana/".proxyPass = "http://${config.services.grafana.addr}:${toString config.services.grafana.port}/";
48 locations."/prometheus".proxyPass = "http://${config.services.prometheus.listenAddress}:${toString config.services.prometheus.port}";
49 };
50 + virtualHosts."monitoring.nixos.org" = {
51 + enableACME = true;
52 + forceSSL = true;
53 + locations."/".return = "302 https://status.nixos.org";
54 + locations."/prometheus/".proxyPass = "http://${config.services.prometheus.listenAddress}:${toString config.services.prometheus.port}";
55 + locations."/grafana/".proxyPass = "http://${config.services.grafana.addr}:${toString config.services.grafana.port}/";
56 + };
57 };
58
59 services.prometheus = {