1
Fork 0
nixos-system-config/packages/nginx/homeserver.nix

17 lines
309 B
Nix
Raw Normal View History

2023-06-25 12:21:00 +02:00
{ ... }:
{
2023-06-25 20:27:56 +02:00
services.nginx = {
enable = true;
user = "media";
virtualHosts."192.168.2.69" = {
root = "/mnt/mass/Torrents";
extraConfig = ''
autoindex on;
'';
};
2023-06-25 12:21:00 +02:00
};
networking.firewall.allowedTCPPorts = [ 80 ];
}