owncast: location subdir needs alias not root

This commit is contained in:
Astro 2022-12-12 21:22:57 +01:00
parent bfae8d96d5
commit 9f64181a58
1 changed files with 6 additions and 9 deletions

View File

@ -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;