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

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