summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2019-05-06 23:36:14 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2019-05-06 23:36:14 +0200
commit600320d120ba3592fab5c460dcf0134e1ad53111 (patch)
tree2ccdd588ebd12d89d842c89b47e09419c7b6cc99
parentdcc926fbb4ee926bcfcb8b30d976c387c889cbc1 (diff)
downloadnixos-600320d120ba3592fab5c460dcf0134e1ad53111.tar
nixos-600320d120ba3592fab5c460dcf0134e1ad53111.tar.gz
nixos-600320d120ba3592fab5c460dcf0134e1ad53111.tar.bz2
nixos-600320d120ba3592fab5c460dcf0134e1ad53111.tar.xz
nixos-600320d120ba3592fab5c460dcf0134e1ad53111.zip
media on odin
-rw-r--r--odin.nix11
1 files changed, 8 insertions, 3 deletions
diff --git a/odin.nix b/odin.nix
index 43b19108..3f209ae9 100644
--- a/odin.nix
+++ b/odin.nix
@@ -496,9 +496,14 @@
496 496
497 locations = { 497 locations = {
498 # "/bar".proxyPass = "http://bar/"; 498 # "/bar".proxyPass = "http://bar/";
499 "/".extraConfig = '' 499 "/" = {
500 return 302 /grafana/; 500 root = /srv/media/;
501 ''; 501 extraConfig = ''
502 autoindex on;
503 autoindex_localtime on;
504 autoindex_exact_size off;
505 '';
506 };
502 "/motion/cat-food.mjpeg".proxyPass = "http://localhost:8080/"; 507 "/motion/cat-food.mjpeg".proxyPass = "http://localhost:8080/";
503 "/motion/living-room.mjpeg".proxyPass = "http://localhost:8081/"; 508 "/motion/living-room.mjpeg".proxyPass = "http://localhost:8081/";
504 "/prometheus" = { 509 "/prometheus" = {