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

19 lines
387 B
Nix
Raw Normal View History

{ pkgs, config, ... }: {
2022-05-06 20:26:49 +02:00
services = {
nginx = {
enable = true;
recommendedProxySettings = true;
virtualHosts = {
"files.${config.dump-dvb.domain}" = {
2022-05-06 20:26:49 +02:00
enableACME = true;
forceSSL = true;
2022-05-06 21:56:41 +02:00
root = "/var/lib/data-accumulator/";
extraConfig = ''
autoindex on;
'';
2022-05-06 20:26:49 +02:00
};
};
2022-05-09 16:50:23 +02:00
};
};
2022-05-06 20:26:49 +02:00
}