From 460a2546a7311ffd797ead9c0e7903432906db1f Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Mon, 6 May 2019 23:27:15 +0200 Subject: ... --- odin.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/odin.nix b/odin.nix index 9a825552..13b0d9b9 100644 --- a/odin.nix +++ b/odin.nix @@ -491,10 +491,13 @@ serverAliases = [ "odin" "10.141.1.2" ]; forceSSL = true; + sslCertificate = /var/lib/ssl/self-signed-cert.pem; + sslCertificateKey = /var/lib/ssl/self-signed-key.pem; + locations = { # "/bar".proxyPass = "http://bar/"; "/".extraConfig = '' - return 301 /grafana/; + return 302 /grafana/; ''; "/motion/cat-food.mjpeg".proxyPass = "http://localhost:8080/"; "/motion/living-room.mjpeg".proxyPass = "http://localhost:8081/"; @@ -523,6 +526,8 @@ }; }; + users.users.nginx.extraGroups = ["ssl"]; + services.prometheus = { enable = true; webExternalUrl = "http://odin.asgard.yggdrasil/prometheus"; -- cgit v1.2.3