From 5a77fdd5b3a359f66be99bae46258c246e4db88b Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Mon, 6 May 2019 20:50:57 +0200 Subject: ... --- odin.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'odin.nix') diff --git a/odin.nix b/odin.nix index 87cc9096..7cfac3ec 100644 --- a/odin.nix +++ b/odin.nix @@ -494,7 +494,13 @@ "/bar/".proxyPass = "http://bar/"; "/motion/cat-food.mjpeg".proxyPass = "http://localhost:8080/"; "/motion/living-room.mjpeg".proxyPass = "http://localhost:8081/"; - "/prometheus".proxyPass = "http://prometheus"; + "/prometheus" = { + extraConfig = '' + auth_basic "Yggdrasil"; + auth_basic_user_file /etc/yggdrasil.htpasswd; + ''; + proxyPass = "http://prometheus"; + }; "/grafana".proxyPass = "http://grafana"; }; }; -- cgit v1.2.3