summaryrefslogtreecommitdiff
path: root/odin.nix
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2019-05-06 23:27:15 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2019-05-06 23:27:15 +0200
commit460a2546a7311ffd797ead9c0e7903432906db1f (patch)
treed85f7a1a52617b501a178a9338da0a8baf61993a /odin.nix
parentc31bb273918dc5403e7f9aa6013d8e144f1be4f2 (diff)
downloadnixos-460a2546a7311ffd797ead9c0e7903432906db1f.tar
nixos-460a2546a7311ffd797ead9c0e7903432906db1f.tar.gz
nixos-460a2546a7311ffd797ead9c0e7903432906db1f.tar.bz2
nixos-460a2546a7311ffd797ead9c0e7903432906db1f.tar.xz
nixos-460a2546a7311ffd797ead9c0e7903432906db1f.zip
...
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";