owncast: location subdir needs alias not root
This commit is contained in:
parent
bfae8d96d5
commit
9f64181a58
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue