diff options
| -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" = { |
