owncast: mount archive

This commit is contained in:
Astro 2022-12-12 21:15:04 +01:00
parent 0f3810ddd8
commit 592d79a9e0
1 changed files with 12 additions and 1 deletions

View File

@ -2,9 +2,13 @@
{
deployment = {
persistedShares = [ "/etc" "/home" "/var" ];
vcpu = 8;
mem = 2048;
persistedShares = [ "/etc" "/home" "/var" ];
extraShares = [ {
source = "/glusterfs/big/microvms/c3d2/config/owncast/archive";
mountPoint = "/mnt/archive";
} ];
};
c3d2.hq.statistics.enable = true;
@ -35,6 +39,13 @@
proxyPass = "http://127.0.0.1:${toString port}";
proxyWebsockets = true;
};
locations."/archive" = {
root = "/mnt/archive";
extraConfig = ''
fancyindex on;
fancyindex_exact_size off;
'';
};
};
};
}