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;