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

19 lines
381 B
Nix
Raw Normal View History

2022-07-11 13:57:07 +02:00
{ config, ... }: {
2022-05-06 20:26:49 +02:00
services = {
nginx = {
enable = true;
recommendedProxySettings = true;
virtualHosts = {
2022-12-30 18:29:13 +01:00
"files.${config.deployment-TLMS.domain}" = {
2022-05-06 20:26:49 +02:00
enableACME = true;
forceSSL = true;
2022-09-15 19:46:05 +02:00
root = "/var/lib/pub-files/";
2022-05-06 21:56:41 +02:00
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
}