From 9f64181a58174399fdf658f7e77519b94e587217 Mon Sep 17 00:00:00 2001 From: Astro Date: Mon, 12 Dec 2022 21:22:57 +0100 Subject: [PATCH] owncast: location subdir needs alias not root --- hosts/owncast/default.nix | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/hosts/owncast/default.nix b/hosts/owncast/default.nix index d68eb1e8..14e60c7a 100644 --- a/hosts/owncast/default.nix +++ b/hosts/owncast/default.nix @@ -33,15 +33,12 @@ forceSSL = true; enableACME = true; - locations."/" = - let - inherit (config.services.owncast) port; - in { - proxyPass = "http://127.0.0.1:${toString port}"; - proxyWebsockets = true; - }; - locations."/archive" = { - root = "/mnt/archive"; + locations."/" = { + proxyPass = "http://127.0.0.1:${toString config.services.owncast.port}"; + proxyWebsockets = true; + }; + locations."/archive/" = { + alias = "/mnt/archive"; extraConfig = '' fancyindex on; fancyindex_exact_size off;