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