diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2019-05-06 23:27:15 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2019-05-06 23:27:15 +0200 |
commit | 460a2546a7311ffd797ead9c0e7903432906db1f (patch) | |
tree | d85f7a1a52617b501a178a9338da0a8baf61993a | |
parent | c31bb273918dc5403e7f9aa6013d8e144f1be4f2 (diff) | |
download | nixos-460a2546a7311ffd797ead9c0e7903432906db1f.tar nixos-460a2546a7311ffd797ead9c0e7903432906db1f.tar.gz nixos-460a2546a7311ffd797ead9c0e7903432906db1f.tar.bz2 nixos-460a2546a7311ffd797ead9c0e7903432906db1f.tar.xz nixos-460a2546a7311ffd797ead9c0e7903432906db1f.zip |
...
-rw-r--r-- | odin.nix | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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"; |