eris: make index HTML
Graham Christensen committed
Sep 26, 2019 at 03:01 UTC
aea658e56cb3d196d44d68ff3e2fe4ee3beb4a6d
1 file changed
+6
-1
delft/eris.nix
+6
-1
@@ -35,7 +35,12 @@
35
virtualHosts."status.nixos.org" = {
36
enableACME = true;
37
forceSSL = true;
38
- root = pkgs.writeTextDir "index.html" "check out /grafana and /prometheus";
38
+ root = pkgs.writeTextDir "index.html" ''
39
+ <ul>
40
+ <li><a href="/grafana">Grafana</a></li>
41
+ <li><a href="/prometheus">Prometheus</a></li>
42
+ </ul>
43
+ '';
44
locations."/grafana/".proxyPass = "http://${config.services.grafana.addr}:${toString config.services.grafana.port}/";
45
locations."/prometheus".proxyPass = "http://${config.services.prometheus.listenAddress}";
46
};