nix-config/modules/data-hoarder/file_sharing.nix

19 lines
381 B
Nix

{ config, ... }: {
services = {
nginx = {
enable = true;
recommendedProxySettings = true;
virtualHosts = {
"files.${config.deployment-TLMS.domain}" = {
enableACME = true;
forceSSL = true;
root = "/var/lib/pub-files/";
extraConfig = ''
autoindex on;
'';
};
};
};
};
}