summaryrefslogtreecommitdiff
path: root/odin.nix
diff options
context:
space:
mode:
Diffstat (limited to 'odin.nix')
-rw-r--r--odin.nix7
1 files changed, 6 insertions, 1 deletions
diff --git a/odin.nix b/odin.nix
index 9a825552..13b0d9b9 100644
--- a/odin.nix
+++ b/odin.nix
@@ -491,10 +491,13 @@
491 serverAliases = [ "odin" "10.141.1.2" ]; 491 serverAliases = [ "odin" "10.141.1.2" ];
492 forceSSL = true; 492 forceSSL = true;
493 493
494 sslCertificate = /var/lib/ssl/self-signed-cert.pem;
495 sslCertificateKey = /var/lib/ssl/self-signed-key.pem;
496
494 locations = { 497 locations = {
495 # "/bar".proxyPass = "http://bar/"; 498 # "/bar".proxyPass = "http://bar/";
496 "/".extraConfig = '' 499 "/".extraConfig = ''
497 return 301 /grafana/; 500 return 302 /grafana/;
498 ''; 501 '';
499 "/motion/cat-food.mjpeg".proxyPass = "http://localhost:8080/"; 502 "/motion/cat-food.mjpeg".proxyPass = "http://localhost:8080/";
500 "/motion/living-room.mjpeg".proxyPass = "http://localhost:8081/"; 503 "/motion/living-room.mjpeg".proxyPass = "http://localhost:8081/";
@@ -523,6 +526,8 @@
523 }; 526 };
524 }; 527 };
525 528
529 users.users.nginx.extraGroups = ["ssl"];
530
526 services.prometheus = { 531 services.prometheus = {
527 enable = true; 532 enable = true;
528 webExternalUrl = "http://odin.asgard.yggdrasil/prometheus"; 533 webExternalUrl = "http://odin.asgard.yggdrasil/prometheus";