diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2019-05-06 23:36:14 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2019-05-06 23:36:14 +0200 |
commit | 600320d120ba3592fab5c460dcf0134e1ad53111 (patch) | |
tree | 2ccdd588ebd12d89d842c89b47e09419c7b6cc99 | |
parent | dcc926fbb4ee926bcfcb8b30d976c387c889cbc1 (diff) | |
download | nixos-600320d120ba3592fab5c460dcf0134e1ad53111.tar nixos-600320d120ba3592fab5c460dcf0134e1ad53111.tar.gz nixos-600320d120ba3592fab5c460dcf0134e1ad53111.tar.bz2 nixos-600320d120ba3592fab5c460dcf0134e1ad53111.tar.xz nixos-600320d120ba3592fab5c460dcf0134e1ad53111.zip |
media on odin
-rw-r--r-- | odin.nix | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -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" = { |