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

14 lines
257 B
Nix
Raw Normal View History

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