From 600320d120ba3592fab5c460dcf0134e1ad53111 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Mon, 6 May 2019 23:36:14 +0200 Subject: media on odin --- odin.nix | 11 ++++++++--- 1 file 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 @@ locations = { # "/bar".proxyPass = "http://bar/"; - "/".extraConfig = '' - return 302 /grafana/; - ''; + "/" = { + root = /srv/media/; + extraConfig = '' + autoindex on; + autoindex_localtime on; + autoindex_exact_size off; + ''; + }; "/motion/cat-food.mjpeg".proxyPass = "http://localhost:8080/"; "/motion/living-room.mjpeg".proxyPass = "http://localhost:8081/"; "/prometheus" = { -- cgit v1.2.3