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; forceSSL = true;
enableACME = true; enableACME = true;
locations."/" = locations."/" = {
let proxyPass = "http://127.0.0.1:${toString config.services.owncast.port}";
inherit (config.services.owncast) port; proxyWebsockets = true;
in { };
proxyPass = "http://127.0.0.1:${toString port}"; locations."/archive/" = {
proxyWebsockets = true; alias = "/mnt/archive";
};
locations."/archive" = {
root = "/mnt/archive";
extraConfig = '' extraConfig = ''
fancyindex on; fancyindex on;
fancyindex_exact_size off; fancyindex_exact_size off;